catch ( Exception e )
{
fail( e.getMessage() );
}
ModifyDnResponse modifyDNResponse = ( ModifyDnResponse ) parser.getBatchResponse().getCurrentResponse();
Map<String, Control> controls = modifyDNResponse.getControls();
assertEquals( 1, modifyDNResponse.getControls().size() );
Control control = controls.get( "1.2.840.113556.1.4.643" );
assertNotNull( control );
assertTrue( control.isCritical() );