@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(map(),
            map(),
            map(),
            map("test.meter", meter),
            map());
    assertThat(consoleOutput())
            .isEqualTo(lines(
                    dateHeader,
                    "",
                    "-- Meters ----------------------------------------------------------------------",
                    "test.meter",
                    "             count = 1",
                    "         mean rate = 2.00 events/second",
                    "     1-minute rate = 3.00 events/second",
                    "     5-minute rate = 4.00 events/second",
                    "    15-minute rate = 5.00 events/second",
                    "",
                    ""
            ));
}