### Question:
WSDLinfo extends HttpServlet { @Override public void init(ServletConfig config) throws ServletException { logger.info("Initializing Servlet WSDLinfo"); super.init(config); } WSDLinfo(); @Override void init(ServletConfig config); static String configLocation; }### Answer:
@Test public void testInit() throws Exception { WSDLinfo info = new WSDLinfo(); ServletConfig config = new GenericServlet() { @Override public void service(ServletRequest sr, ServletResponse sr1) throws ServletException, IOException { } }; info.init(config); }