@Test
public void reportsMeterValues() throws Exception {

    final Meter meter = mock(Meter.class);
    when(meter.getCount()).thenReturn(1L);
    when(meter.getMeanRate()).thenReturn(2.0);
    when(meter.getOneMinuteRate()).thenReturn(3.0);
    when(meter.getFiveMinuteRate()).thenReturn(4.0);
    when(meter.getFifteenMinuteRate()).thenReturn(5.0);
    reporter.report(this.<Gauge>map(),
            this.<Counter>map(),
            this.<Histogram>map(),
            map("test.meter", meter),
            this.<Timer>map());
    Assertions.assertThat(fileContents("test.meter.csv"))
            .isEqualTo(csv(
                    "t,count,mean_rate,m1_rate,m5_rate,m15_rate,rate_unit",
                    "19910191,1,2.000000,3.000000,4.000000,5.000000,events/second"
            ));
}