public FailureResponse sendAndWaitFailure(Operation op){
  FailureResponse response=new FailureResponse();
  String msg=String.format("Expected operation failure but was successful. uri=%s ",op.getUri());
  Exception callerStack=new RuntimeException(msg);
  TestContext waitContext=new TestContext(1,this.timeout);
  op.appendCompletion(null);
  sendRequest(op);
  waitContext.await();
  return response;
}

public FailureResponse sendAndWaitFailure ( Operation op ) { FailureResponse response = new FailureResponse ( ) ; String msg = String . format ( "Expected operation failure but was successful. uri=%s " , op . getUri ( ) ) ; Exception callerStack = new RuntimeException ( msg ) ; TestContext waitContext = new TestContext ( 1 , this . timeout ) ; op . appendCompletion ( null ) ; sendRequest ( op ) ; waitContext . await ( ) ; return response ; }
synchronously perform operation . expecting provided operation to be failed .
