@Test
    void testUserDnTemplate() {
        String template = "uid={0},ou=users,dc=mycompany,dc=com";
        realm.setUserDnTemplate(template);
        assertEquals(template, realm.getUserDnTemplate());
    }
Tests for the {@link DefaultLdapRealm} class.

@since 1.3
core/src/test/java/org/apache/shiro/realm/ldap/DefaultLdapRealmTest.java