### Question:
LogfileViewerConsolePlugin extends AbstractWebConsolePlugin { @Override protected void renderContent(HttpServletRequest req, HttpServletResponse res) throws IOException { writeScriptIncludes(res); writeHead(req, res); }  @Override void init(); @Override void destroy(); @SuppressWarnings("unused") String getCategory(); URL getResource(String path); @Override String getTitle(); @Override String getLabel();  }### Answer:
@Test public void testRenderContentContainsDropdownValuesForTestLogfiles() throws Exception { renderContent(); assertResponseContains("value=\"" + pathOf("logs/error.log") + "\""); assertResponseContains("value=\"" + pathOf("logs/error.log.1") + "\""); assertResponseContains("value=\"" + pathOf("logs/error.log.2020-01-01") + "\""); assertResponseContains("value=\"" + pathOf("logs/crx/error.log") + "\""); assertResponseContains("value=\"" + pathOf("logs/crx/error.log.0") + "\""); assertResponseContains("value=\"" + pathOf("logs/crx/error.log.2020-11-23") + "\""); }
@Test public void testRenderContentsContainsDropdownWithSelectedOptionWhenFileParameterIsPresent() throws IOException { withFileRequestParameter(pathOf("logs/error.log")); renderContent(); assertResponseContains("value=\"" + pathOf("logs/error.log") + "\" selected"); }