HashSet set = new HashSet();
NamingEnumeration list = sysRootAsNonAdminUser.search( "",
"(objectClass=*)", controls );
while ( list.hasMore() )
{
DbSearchResult result = ( DbSearchResult ) list.next();
set.add( result.getName() );
}
assertTrue( set.contains( "ou=system" ) );
assertTrue( set.contains( "ou=groups,ou=system" ) );
assertFalse( set.contains( "cn=administrators,ou=groups,ou=system" ) );