### Question:
SimpleStatsCollector extends AbstractStatsCollector { public void clearData() { data.clear(); } SimpleStatsCollector();  SimpleStatsCollector(Predicate<String> templatePredicate,
            TimeUnit timeUnit); @Override void init(); @Override void renderingStarted(final MustacheRenderingEvent event); void clearData(); Map<Long, Long> getData(String templateId); Map<String, Map<Long, Long>> getData(); SimpleStats getSimpleStats(String templateId); Set<SimpleStats> getSimpleStats(); static final String COMPUTING_CACHE_CONSUMER_ID; }### Answer:
@Test public void testClearData() { SimpleStatsCollector collector = new SimpleStatsCollector(); Mustache mustache = MustacheEngineBuilder.newBuilder() .addMustacheListener(collector).build() .compileMustache("bar", "BAR"); mustache.render(null); assertEquals(1, collector.getSimpleStats("bar").getExecutions()); collector.clearData(); assertNull(collector.getSimpleStats("bar")); }