    @Test(expected = ClientException.class)
    public void testAnotherFailedDispatch() throws Exception {

        final Span span = tracer.buildSpan("sad-path").start();
        span.finish();
        final ArgumentCaptor<HttpPost> httpPostCapture = ArgumentCaptor.forClass(HttpPost.class);
        final CloseableHttpClient http = Mockito.mock(CloseableHttpClient.class);
        when(http.execute(httpPostCapture.capture())).thenThrow(new IOException());

        final HttpCollectorClient client = new HttpCollectorClient("http://myendpoint:8080/span", new HashMap<>(), http);
        client.send(span);
    }