@Test
    void responseAbortWithException() throws InterruptedException {
        final WebClient client = WebClient.of(server.httpUri());
        final HttpRequest request = HttpRequest.streaming(HttpMethod.GET, "/client-aborted");
        final HttpResponse response = client.execute(request);

        await().until(() -> completed);
        final IllegalStateException badState = new IllegalStateException("bad state");
        response.abort(badState);
        assertThatThrownBy(() -> response.aggregate().join())
                .isInstanceOf(CompletionException.class)
                .hasCause(badState);
    }
User-agent header should be overridden by ClientOption.HTTP_HEADER
core/src/test/java/com/linecorp/armeria/client/HttpClientIntegrationTest.java