public void setupExpectation() throws IOException {
// given
MockHttpServletRequest httpServletRequest = new MockHttpServletRequest("PUT", "/expectation");
MockHttpServletResponse httpServletResponse = new MockHttpServletResponse();
HttpRequest httpRequest = mock(HttpRequest.class);
Times times = mock(Times.class);
Expectation expectation = new Expectation(httpRequest, times).thenRespond(new HttpResponse());
String requestBytes = "requestBytes";
httpServletRequest.setContent(requestBytes.getBytes());
when(mockExpectationSerializer.deserialize(requestBytes)).thenReturn(expectation);