HashMap<String, Attributes> map = new HashMap<String, Attributes>();
NamingEnumeration<SearchResult> list = sysRoot.search( "", "(ou=testing02)", controls );
while ( list.hasMore() )
{
SearchResult result = list.next();
map.put( result.getName(), result.getAttributes() );
}
list.close();
assertEquals( "Expected number of results returned was incorrect", 1, map.size() );