TaskGenerateIndexHtml extends AbstractTaskClientGenerator { @Override protected String getFileContent() throws IOException { return IOUtils .toString(getClass().getResourceAsStream(INDEX_HTML), UTF_8); } TaskGenerateIndexHtml(File frontendDirectory, File outputDirectory);   }
@Test public void should_loadCorrectContentOfDefaultFile() throws Exception { String defaultContent = IOUtils.toString( getClass().getResourceAsStream(INDEX_HTML), StandardCharsets.UTF_8); Assert.assertEquals( "Should load correct default content from index.html", defaultContent, taskGenerateIndexHtml.getFileContent()); }