TimingProxyClientTcpTransportHandler extends TransportHandler implements ProxyableTransportHandler,
        TimeableTransportHandler { @Override public void closeConnection() throws IOException { if (dataSocket == null) { throw new IOException("Transporthandler is not initalized!"); } dataSocket.close(); if (controlSocket == null) { throw new IOException("Transporthandler is not initalized!"); } controlSocket.close(); } TimingProxyClientTcpTransportHandler(Connection connection);  TimingProxyClientTcpTransportHandler(long timeout, String hostname, int port); @Override byte[] fetchData(); @Override void setProxy(String dataChannelHost, int dataChanelPort, String controlChannelHost, int controlChanelPort); @Override void closeConnection(); @Override void initialize(); @Override boolean isClosed(); @Override void closeClientConnection(); SocketState getSocketState(); @Override Long getLastMeasurement();  }
@Test(expected = IOException.class) public void testCloseConnection() throws IOException { handler = new TimingProxyClientTcpTransportHandler(100, "localhost", 0); handler.closeConnection(); }