@Test
    void testExampleDetection() {
        final AnalyticsServiceImpl analyticsService = new AnalyticsServiceImpl(
                mockEmailSender,
                templatingService);

        final Detection exampleDetection = analyticsService.getExampleDetection();
        final String template = new AnalyticUiDefaultConfig().getDefaultBodyTemplate();
        final String output = templatingService.renderTemplate(exampleDetection, template);

        LOGGER.info("output:\n{}", output);

        assertThat(output)
                .contains("<li><strong>name_1</strong>: value_A</li>")
                .contains("<li><strong>name_4</strong>: </li>")
                .contains("<li>Environment: Test Environment, Stream ID: 1001, Event ID: 2</li>");
    }
Verify that our example template from config works with our example detection
stroom-analytics/stroom-analytics-impl/src/test/java/stroom/analytics/impl/TestAnalyticsServiceImpl.java