ForwardChainExpectation forwardChainExpectation = mockServerClient.when(httpRequest);
forwardChainExpectation.respond(httpResponse);
// then
Expectation expectation = forwardChainExpectation.getExpectation();
assertTrue(expectation.matches(httpRequest));
assertSame(httpResponse, expectation.getHttpResponse(false));
assertEquals(Times.unlimited(), expectation.getTimes());
}
@Test