catch ( Exception e )
{
fail( e.getMessage() );
}
ExtendedResponse extendedResponse = ( ExtendedResponse ) parser.getBatchResponse().getCurrentResponse();
Map<String, Control> controls = extendedResponse.getControls();
assertEquals( 2, extendedResponse.getControls().size() );
Control control = controls.get( "1.2.840.113556.1.4.789" );
assertNotNull( control );
assertFalse( control.isCritical() );