public void shouldCountEvents(){
// Given
FreemarkerViewGenerator generator = new FreemarkerViewGenerator();
// When
Report report = mock(Report.class);
Properties stats = new Properties();
stats.setProperty("found", "1");
when(report.asProperties("stats")).thenReturn(stats);
// Then
assertThat(generator.count("found", asList(report)), equalTo(1));
assertThat(generator.count("notFound", asList(report)), equalTo(0));