dynamic abortExpectationFailed([body = 'Expectation Failed'])

Source

abortExpectationFailed([body = 'Expectation Failed']) {
  throw new HttpExpectationFailedException(body);
}