### Question:
ChecksumGeneratorServlet extends BaseChecksumServlet { @Override public final void doGet(SlingHttpServletRequest request, SlingHttpServletResponse response) throws ServletException { try { this.handleCORS(request, response); this.handleRequest(request, response); } catch (IOException|RepositoryException e) { throw new ServletException(e); } }  @Override final void doGet(SlingHttpServletRequest request, SlingHttpServletResponse response); @Override final void doPost(SlingHttpServletRequest request, SlingHttpServletResponse response); static final Logger log; static final String SERVLET_PATH; }### Answer:
@Test public void testWithNoPath() throws Exception { ResourceResolver resourceResolver = MockSling.newResourceResolver(context.bundleContext()); MockSlingHttpServletRequest request = new MockSlingHttpServletRequest(resourceResolver, context.bundleContext()); request.setResource(resourceResolver.getResource(SERVLET_PATH)); MockRequestPathInfo requestPathInfo = (MockRequestPathInfo)request.getRequestPathInfo(); requestPathInfo.setSelectorString(SERVLET_SELECTORS); requestPathInfo.setExtension(SERVLET_EXTENSION); request.setMethod("GET"); MockSlingHttpServletResponse response = new MockSlingHttpServletResponse(); servlet.doGet(request, response); assertEquals("text/plain;charset=UTF-8", response.getContentType()); assertEquals("ERROR: At least one path must be specified", response.getOutputAsString()); }