@Test
public void sendsMetricAttributesAsTagsIfEnabled() throws Exception {

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