@Test(expected = ConnectException.class)
public void shouldThrowConnectException() throws Exception {

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