PerformanceLoggerCountingAggregate implements PerformanceLogger { @Override public void reset() { for (PerformanceLogger performanceLogger : performanceLoggers) { performanceLogger.reset(); } }  @Override void reset(); @Override Map<String, Long> getLoggedValues(); void add(PerformanceLogger performanceLogger);  }
@Test public void reset() { PerformanceLogger logger = mock(PerformanceLogger.class); PerformanceLoggerCountingAggregate aggregate = new PerformanceLoggerCountingAggregate(); aggregate.add(logger); aggregate.reset(); verify(logger, times(1)).reset(); }