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

    InfluxDbHttpSender influxDbHttpSender = new InfluxDbHttpSender(
        "http",
        "testtestasdfg",
        80,
        "testdb",
        "asdf",
        TimeUnit.MINUTES,
        1000,
        1000,
        ""
    );
    influxDbHttpSender.writeData(new byte[0]);
}