@Test
public void httpsFailure() throws Throwable {

    List<Service> services = this.host.doThroughputServiceStart(10,
            MinimalTestService.class,
            this.host.buildMinimalTestState(),
            null, null);
    List<URI> uris = new ArrayList<>();
    for (Service s : services) {
        URI u = UriUtils.extendUri(this.host.getSecureUri(), s.getSelfLink());
        uris.add(u);
    }
    this.host.getServiceState(null, MinimalTestServiceState.class, uris);
    this.host.testStart(uris.size());
    for (URI u : uris) {
        MinimalTestServiceState body = (MinimalTestServiceState) this.host
                .buildMinimalTestState();
        // simulate exception to reproduce https connection pool blocking on failure
        body.id = MinimalTestService.STRING_MARKER_HAS_CONTEXT_ID;
        Operation put = Operation.createPatch(u).setBody(body)
                .setCompletion((o, e) -> {
                    this.host.completeIteration();
                });
        this.host.send(put);
    }
    this.host.testWait();
}