catch ( Exception e )
{
fail( e.getMessage() );
}
SearchResponse searchResponse = ( SearchResponse )
parser.getBatchResponse().getCurrentResponse().getDecorated();
SearchResultEntry searchResultEntry =
searchResponse.getCurrentSearchResultEntry();
Map<String, Control> controls =
searchResponse.getCurrentSearchResultEntry().getControls();
assertEquals( 1, searchResultEntry.getControls().size() );
Control control = controls.get( "1.2.840.113556.1.4.643" );