@Test
public void connectsToGraphiteWithHostAndPort() throws Exception {

    graphite = new Graphite(host, port, socketFactory);
    graphite.connect();
    verify(socketFactory).createSocket(address.getAddress(), port);
}