StubConfigurationSaverServlet extends HttpServlet { @Override protected void doPost(final HttpServletRequest req, final HttpServletResponse resp) throws ServletException, IOException { doGet(req, resp); } @Autowired  StubConfigurationSaverServlet(StubConfigurationSaverService stubConfigurationSaverService, UrlAccessLogMessageAssembler urlAccessLogMessageAssembler);   }
@Test public void testDoPostShouldCallSaveStubConfigurations() throws ServletException, IOException, JsonTransformationException { underTest.doPost(request, response); verify(stubConfigurationSaverService).saveStubConfigurations(); verify(response).setStatus(HttpServletResponse.SC_OK); }