SearchResultEntry searchResultEntry = ldapMessageContainer.getMessage();
assertEquals( 1, searchResultEntry.getMessageId() );
assertEquals( "ou=contacts,dc=iktek,dc=com", searchResultEntry.getObjectName().toString() );
Entry entry = searchResultEntry.getEntry();
assertEquals( 2, entry.size() );
String[] expectedAttributes = new String[]
{ "objectClass", "objectClass2" };
for ( int i = 0; i < expectedAttributes.length; i++ )
{
Attribute attribute = entry.get( expectedAttributes[i] );
assertEquals( expectedAttributes[i].toLowerCase(), attribute.getId().toLowerCase() );
assertTrue( attribute.contains( "top" ) );
assertTrue( attribute.contains( "organizationalUnit" ) );