StubConfigurationOrderServlet extends HttpServlet { @Override protected void doPost(final HttpServletRequest req, final HttpServletResponse resp) throws ServletException, IOException { doGet(req, resp); } @Autowired  StubConfigurationOrderServlet(StubConfigurationOrderService stubConfigurationOrderService);   }
@Test public void testDoPostShouldCallDoChangeOfStubConfigurationService() throws ServletException, IOException, ClassNotFoundException { underTest.doPost(request, response); verify(stubConfigurationOrderService).doChange(1, DEFAULT_GROUPNAME, request); }