@Test
    void testDefaultInstance() {
        assertTrue(realm.getCredentialsMatcher() instanceof AllowAllCredentialsMatcher);
        assertEquals(AuthenticationToken.class, realm.getAuthenticationTokenClass());
        assertTrue(realm.getContextFactory() instanceof JndiLdapContextFactory);
    }
Tests for the {@link DefaultLdapRealm} class.

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