@Test(expected = UnknownHostException.class)
public void shouldThrowUnknownHostException() throws Exception {

    InfluxDbTcpSender influxDbTcpSender = new InfluxDbTcpSender(
        "testtestasdfg",
        10080,
        1000,
        "test",
        ""
    );
    influxDbTcpSender.writeData(new byte[0]);
}