@Test
public void verifyBehaviourDuringHandleGetRequestWithSomeResults() throws Exception {
final String requestPathInfo = "/path/1";
final StubResponse mockStubResponse = Mockito.mock(StubResponse.class);
when(mockHttpServletResponse.getWriter()).thenReturn(mockPrintWriter);
when(mockHttpServletRequest.getMethod()).thenReturn(HttpMethods.GET);
when(mockHttpServletRequest.getPathInfo()).thenReturn(requestPathInfo);
when(mockStubbedDataManager.findStubResponseFor(Mockito.any(StubRequest.class))).thenReturn(mockStubResponse);
when(mockStubResponse.getStubResponseType()).thenReturn(StubResponseTypes.OK_200);
when(mockStubResponse.getStatus()).thenReturn("200");
when(mockStubResponse.getResponseBodyAsBytes()).thenReturn(null);
final StubsPortalHandler stubsPortalHandler = new StubsPortalHandler(mockStubbedDataManager);
stubsPortalHandler.handle(requestPathInfo, mockRequest, mockHttpServletRequest, mockHttpServletResponse);
verify(mockHttpServletResponse, times(1)).setStatus(HttpStatus.OK_200);