@Test
public void reportsCounters() throws Exception {

    Counter counter = mock(Counter.class);
    when(counter.getCount()).thenReturn(42L);
    reporter.report(
            map(),
            map("api.rest.requests.count", counter),
            map(),
            map(),
            map());
    assertThat(nextValues(receiver)).containsExactly(42d);
}