protected String writeReportIndex(final String project, final File outputPath) throws IOException {

        Map<String, Object> data = new HashMap<>();
        data.put("project", project);
        data.put("routes", routeStatisticMap.values());
        data.put("totals", routeTotalsStatistic);

        String rendered = TemplateRenderer.render(INDEX_FILE, data);

        return fileUtil.write(rendered, "index", outputPath);
    }
@Test
    public void testWriteReportIndex() throws IOException {

        File outputPath = htmlPath();
        Path outputPathAsPath = Paths.get(outputPath.getPath());
        if (!Files.exists(outputPathAsPath)) {
            Files.createDirectories(outputPathAsPath);
        }

        String result = processor.writeReportIndex("test-project", outputPath);

        assertAll(
                () -> assertTrue(result.length() > 0),
                () -> assertEquals(indexPath().getPath(), result));
    }