@Test
    public void testGetRelativeDNFromResultSingleValue() throws Exception
    {
        // Setup test fixture.
        final SearchResult input = new SearchResult( "cn=bender", null, new BasicAttributes(), true );

        // Execute system under test.
        final Rdn[] result = LdapManager.getInstance().getRelativeDNFromResult( input );

        // Verify result.
        assertEquals( 1, result.length );
        assertEquals( "cn", result[0].getType() );
        assertEquals( "bender", result[0].getValue() );
    }
Verifies that org.jivesoftware.openfire.ldap.LdapManager#getRelativeDNFromResult(javax.naming.directory.SearchResult)
can handle a result that contains one RDN value.
xmppserver/src/test/java/org/jivesoftware/util/LDAPTest.java