assertEquals( "Expected number of results returned was incorrect", 8, map.size() );
assertEquals( "Expected number of results returned was incorrect", 12, map.size() );
    public void testSearchSubTreeLevel() throws NamingException    {        SearchControls controls = new SearchControls();        controls.setSearchScope( SearchControls.SUBTREE_SCOPE );        controls.setDerefLinkFlag( false );        sysRoot.addToEnvironment( DerefAliasesEnum.JNDI_PROP, DerefAliasesEnum.NEVERDEREFALIASES.getName() );        HashMap map = new HashMap();        NamingEnumeration list = sysRoot.search( "", "(ou=*)", controls );        while ( list.hasMore() )        {            SearchResult result = ( SearchResult ) list.next();            map.put( result.getName(), result.getAttributes() );        }        assertEquals( "Expected number of results returned was incorrect", 8, map.size() );        assertTrue( map.containsKey( "ou=system" ) );        assertTrue( map.containsKey( "ou=testing00,ou=system" ) );        assertTrue( map.containsKey( "ou=testing01,ou=system" ) );        assertTrue( map.containsKey( "ou=testing02,ou=system" ) );        assertTrue( map.containsKey( "ou=subtest,ou=testing01,ou=system" ) );    }