ClientRequestContextAdapter { static brave.http.HttpClientResponse asHttpClientResponse(RequestLog log, brave.http.HttpClientRequest request) { return new HttpClientResponse(log, request); } private  ClientRequestContextAdapter();   }
@Test void statusCode() { final HttpRequest req = HttpRequest.of(HttpMethod.GET, "/"); final ClientRequestContext ctx = ClientRequestContext.of(req); ctx.logBuilder().endRequest(); ctx.logBuilder().responseHeaders(ResponseHeaders.of(HttpStatus.OK)); ctx.logBuilder().endResponse(); final HttpClientResponse res = ClientRequestContextAdapter.asHttpClientResponse(ctx.log().ensureComplete(), null); assertThat(res.statusCode()).isEqualTo(200); }