ExternalStubConfigUploadServlet extends HttpServlet { @Override protected void doPost(final HttpServletRequest req, final HttpServletResponse resp) throws ServletException, IOException { doGet(req, resp); } @Autowired  ExternalStubConfigUploadServlet(UrlAccessLogMessageAssembler urlAccessLogMessageAssembler, StubDescriptorJsonFactory stubDescriptorJsonFactory,
                                           RoutingService routingService, SequenceDescriptorHolder sequenceDescriptorHolder, ServiceMap serviceMap);   }
@Test public void testDoPostShouldCallDoGet() throws ServletException, IOException, ClassNotFoundException { given(request.getContentLength()).willReturn(1); underTest.doPost(request, response); verify(routingService).performModification(Mockito.any(NewStubDescriptorCommand.class)); }