catch ( Exception e )
{
fail( e.getMessage() );
}
SearchResponse searchResponse = ( SearchResponse ) parser.getBatchResponse().getCurrentResponse();
assertEquals( 2, searchResponse.getSearchResultEntryList().size() );
assertEquals( 2, searchResponse.getSearchResultReferenceList().size() );
assertNotNull( searchResponse.getSearchResultDone() );
}