@Test
    public void testGetUserDnWithOutPrefixAndSuffix() {
        JndiLdapRealm realm = new JndiLdapRealm() {
            @Override
            protected String getUserDnPrefix() {
                return null;
            }

            @Override
            protected String getUserDnSuffix() {
                return null;
            }
        };
        String principal = "foo";
        String userDn = realm.getUserDn(principal);
        assertEquals(principal, userDn);
    }
Tests for the {@link JndiLdapRealm} class.

@since 1.1
@deprecated Replaced by {@link DefaultLdapRealmTest}
core/src/test/java/org/apache/shiro/realm/ldap/JndiLdapRealmTest.java