@Test
public void closesConnectionOnReporterStop() throws Exception {

    reporter.stop();
    final InOrder inOrder = inOrder(graphite);
    inOrder.verify(graphite).connect();
    inOrder.verify(graphite).flush();
    inOrder.verify(graphite, times(2)).close();
    verifyNoMoreInteractions(graphite);
}