HttpWebService extends ServletBase { @Override protected void doPost( final HttpServletRequest request, final HttpServletResponse response ) throws ServletException, IOException { doGet( request, response ); } HttpWebService(); @Override Log getLogger(); String getPayloadAsString( final HttpServletRequest request ); void doGetFixMe( final HttpServletRequest request, final HttpServletResponse response ); @Override void doGet( final HttpServletRequest request, final HttpServletResponse response );  }
@Test public void testDoPost() throws Exception { HttpWebService service = spy( httpWebService ); doNothing().when( service ).doGet( request, response ); service.doPost( request, response ); verify( service ).doGet( request, response ); }