@Test
public void verifyBehaviourDuringHandlePostRequestWithMissingPostData() throws Exception {
final String requestPathInfo = "/path/1";
final NotFoundStubResponse mockStubResponse = Mockito.mock(NotFoundStubResponse.class);
when(mockHttpServletRequest.getMethod()).thenReturn(HttpMethods.POST);
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");
final StubsPortalHandler stubsPortalHandler = new StubsPortalHandler(mockStubbedDataManager);
stubsPortalHandler.handle(requestPathInfo, mockRequest, mockHttpServletRequest, mockHttpServletResponse);
verify(mockHttpServletResponse, never()).setStatus(HttpStatus.BAD_REQUEST_400);