@Test
public void shouldNotThrowException() throws Exception {

    ServerSocket server = new ServerSocket(10080);
    InfluxDbTcpSender influxDbTcpSender = new InfluxDbTcpSender(
        "0.0.0.0",
        10080,
        1000,
        "test",
        ""
    );
    assertThat(influxDbTcpSender.writeData(new byte[0]) == 0);
    server.close();
}