@Test
public void reportsCounters() throws Exception {

    final Counter counter = mock(Counter.class);
    when(counter.getCount()).thenReturn(100L);
    reporter.report(map(),
        map("counter", counter),
        map(),
        map(),
        map());
    final InOrder inOrder = inOrder(graphite);
    inOrder.verify(graphite).connect();
    inOrder.verify(graphite).send("prefix.counter.count", "100", timestamp);
    inOrder.verify(graphite).flush();
    inOrder.verify(graphite).close();
    verifyNoMoreInteractions(graphite);
}