### Question:
LogfileViewerConsolePlugin extends AbstractWebConsolePlugin { public URL getResource(String path) { URL url = null; String internalPath = substringAfter(path, "/" + getLabel()); if (startsWith(internalPath, "/static/")) { url = getClass().getResource(RESOURCES_ROOT + internalPath); } return url; }  @Override void init(); @Override void destroy(); @SuppressWarnings("unused") String getCategory(); URL getResource(String path); @Override String getTitle(); @Override String getLabel();  }### Answer:
@Test public void testGetResources() { URL resource = this.testee.getResource("/logviewer/static/testresource.txt"); assertThat(resource).isNotNull(); }