// additional mock objects
mockHttpServletRequest = new MockHttpServletRequest();
mockHttpServletResponse = new MockHttpServletResponse();
httpRequest = new HttpRequest().withPath("some_path");
httpResponse = new HttpResponse();
// mappers
when(mockHttpServletToMockServerRequestMapper.mapHttpServletRequestToMockServerRequest(any(MockHttpServletRequest.class))).thenReturn(httpRequest);
httpRequestArgumentCaptor = ArgumentCaptor.forClass(HttpRequest.class);
when(mockApacheHttpClient.sendRequest(httpRequestArgumentCaptor.capture(), eq(false))).thenReturn(httpResponse);