### Question:
InfoGenerator extends HttpServlet { protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { } InfoGenerator(); void init(ServletConfig config);  }### Answer:
@Test public void testDoPost() throws Exception { HttpServletRequest request = null; HttpServletResponse response = null; InfoGenerator instance = new InfoGenerator(); instance.doPost(request, response); }