catch ( Exception e )
{
fail( e.getMessage() );
}
SearchResultDone searchResultDone = ( ( SearchResponse )
parser.getBatchResponse().getCurrentResponse().getDecorated() )
.getSearchResultDone();
Map<String, Control> controls = searchResultDone.getControls();
assertEquals( 3, searchResultDone.getControls().size() );
Control control = controls.get( "1.2.840.113556.1.4.456" );
assertNotNull( control );
assertTrue( control.isCritical() );