ClientRequestContextAdapter { static String protocol(RequestLog requestLog) { return requestLog.scheme().sessionProtocol().uriText(); } private  ClientRequestContextAdapter();   }
@Test void protocol() { final ClientRequestContext ctx = ClientRequestContext.builder(HttpRequest.of(HttpMethod.GET, "/")) .sessionProtocol(SessionProtocol.H2C) .build(); ctx.logBuilder().endRequest(); ctx.logBuilder().endResponse(); assertThat(ClientRequestContextAdapter.protocol(ctx.log().ensureComplete())).isEqualTo("h2c"); }