public void expectFailure(MessageInfo messageInfo,String faultCode){
  if (messageInfo == null) {
    expectedApiCalls.add(new ApiCall(FAILURE,new Object[]{faultCode}));
  }
 else {
    expectedApiCalls.add(new ApiCall(FAILURE,new Object[]{messageInfo.getOrigin(),messageInfo.getClient(),messageInfo.getService(),faultCode}));
  }
}

public void expectFailure ( MessageInfo messageInfo , String faultCode ) { if ( messageInfo == null ) { expectedApiCalls . add ( new ApiCall ( FAILURE , new Object [ ] { faultCode } ) ) ; } else { expectedApiCalls . add ( new ApiCall ( FAILURE , new Object [ ] { messageInfo . getOrigin ( ) , messageInfo . getClient ( ) , messageInfo . getService ( ) , faultCode } ) ) ; } }
expect a failure with the given message info and fault code .
