WilmaReadmeServlet extends HttpServlet { @Override protected void doPost(final HttpServletRequest req, final HttpServletResponse resp) throws ServletException, IOException { doGet(req, resp); } @Autowired  WilmaReadmeServlet(WebAppConfigurationAccess webAppConfigurationAccess);   }
@Test public void testDoPostShouldWriteUrlAndTextToResponse() throws ServletException, IOException { underTest.doPost(request, response); verify(writer).write("{\"readmeUrl\":\"" + readme.getUrl() + "\", \"readmeText\":\"" + readme.getText() + "\"}"); }