protected void writeDetailsAsHtml(final RouteStatistic routeStatistic, final File outputPath) throws IOException {

        Map<String, Object> data = new HashMap<>();
        data.put("route", routeStatistic);
        data.put("eips", routeStatistic.getEipStatisticMap().entrySet());

        String rendered = TemplateRenderer.render(DETAILS_FILE, data);
        fileUtil.write(rendered, routeStatistic.getId(), outputPath);
    }
@Test
    public void testWriteDetailsAsHtml() throws IllegalAccessException, IOException {

        @SuppressWarnings("unchecked")
        Map<String, RouteStatistic> routeStatisticMap
                = (Map<String, RouteStatistic>) FieldUtils.readDeclaredField(processor, "routeStatisticMap", true);

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

        processor.parseAllTestResults(xmlPath());
        processor.gatherBestRouteCoverages();
        processor.generateRouteStatistics("test project", outputPath);
        processor.generateEipStatistics();

        RouteStatistic routeStatistic = processor.getRouteStatistic(GREETINGS_ROUTE);

        assertAll(
                () -> assertNotNull(routeStatistic),
                () -> assertNotNull(routeStatistic.getEipStatisticMap()),
                () -> assertEquals(3, routeStatistic.getEipStatisticMap().size()));

        processor.writeDetailsAsHtml(routeStatistic, outputPath);
    }