}
}
@Test
public void unexpected_request_should_not_fail_fast_if_excluded() throws IOException, ServletException {
RequestMatcher requestMatcher = mock(RequestMatcher.class);
when(requestMatcher.isMatch((RealRequest) anyObject(), (ClientDriverRequest) anyObject())).thenReturn(false);
DefaultClientDriverJettyHandler sut = new DefaultClientDriverJettyHandler(requestMatcher);
sut.addExpectation(new ClientDriverRequest("/not_matched").withMethod(Method.POST), realResponse);
sut.noFailFastOnUnexpectedRequest();
sut.handle("", mockRequest, mockHttpRequest, mockHttpResponse);