@Test
    void encodedContentPreviewIsDecodedInPreviewer() {
        final WebClient client = WebClient.builder(server.httpUri())
                                          .decorator(DecodingClient.newDecorator())
                                          .build();
        final RequestHeaders headers = RequestHeaders.of(HttpMethod.POST, "/encoded",
                                                         HttpHeaderNames.CONTENT_TYPE, "text/plain");
        try (ClientRequestContextCaptor captor = Clients.newContextCaptor()) {
            final AggregatedHttpResponse res = client.execute(headers, "Armeria").aggregate().join();
            assertThat(res.contentUtf8()).isEqualTo("Hello Armeria!");
            final RequestLog requestLog = captor.get().log().whenComplete().join();
            assertThat(requestLog.responseHeaders().get(HttpHeaderNames.CONTENT_ENCODING)).isEqualTo(
                    Brotli.isAvailable() ? "br" : "gzip");
        }

        final RequestLog requestLog = contextCaptor.get().log().whenComplete().join();
        assertThat(requestLog.requestContentPreview()).isEqualTo("Armeria");
        assertThat(requestLog.responseContentPreview()).isEqualTo("Hello Armeria!");
    }
Unlike {@link #contentPreviewBeforeEncoding()}, the content preview of this test is encoded data
because the previewing decorator is inserted after {@link EncodingService}.
core/src/test/java/com/linecorp/armeria/server/logging/ContentPreviewingServiceTest.java