### Question:
DispatcherServlet extends HttpServlet { @Override protected void doPost(final HttpServletRequest req, final HttpServletResponse resp) throws ServletException, IOException { doGet(req, resp); } @Autowired  DispatcherServlet(StubResponseWriter stubResponseWriter);   }### Answer:
@Test public void testDoPostShouldCallWriteResponse() throws ServletException, IOException { underTest.doPost(request, response); verify(stubResponseWriter).writeResponse(request, response); }