code: public ForwardChainExpectation when(HttpRequest httpRequest, Times times) {
          return new ForwardChainExpectation(this, new Expectation(httpRequest, times, TimeToLive.unlimited()), availableWebSocketCallbackRegistrations);
      }
docs: Specify an limited expectation that will respond a specified number of times when the http is matched
  for example:
  <pre>
  mockServerClient
  .when(
  request()
  .withPath("/some_path")
  .withBody("some_request_body"),
  Times.exactly(5)
  )
  .respond(
  response()
  .withBody("some_response_body")
  .withHeader("responseName", "responseValue")
  )
  </pre>
  
  @param httpRequest the http request that must be matched for this expectation to respond
  @param times       the number of times to respond when this http is matched
  @return an Expectation object that can be used to specify the response