@Test
    void testSetUserDnTemplateNull() {
        assertThrows(IllegalArgumentException.class, () -> {
            realm.setUserDnTemplate(null);
        });
    }
Tests for the {@link DefaultLdapRealm} class.

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