public void testAsyncSearch() throws Exception
{
SearchFuture searchFuture = connection.searchAsync( "ou=system", "(objectclass=*)", SearchScope.ONELEVEL, "*",
"+" );
int count = 0;
SearchResponse searchResponse = null;
do
{
searchResponse = ( SearchResponse ) searchFuture.get( 1000, TimeUnit.MILLISECONDS );
assertNotNull( searchResponse );
if( !( searchResponse instanceof SearchResultDone ) )