catch ( Exception e )
{
fail( e.getMessage() );
}
SearchResultReference searchResultReference = ( ( SearchResponse ) parser.getBatchResponse()
.getCurrentResponse() ).getCurrentSearchResultReference();
assertEquals( 2, searchResultReference.getControls().size() );
Control control = searchResultReference.getCurrentControl();
assertFalse( control.getCriticality() );
assertEquals( "1.2.840.113556.1.4.789", control.getControlType() );