BraveClient extends SimpleDecoratingHttpClient { public static Function<? super HttpClient, BraveClient> newDecorator(Tracing tracing) { return newDecorator(tracing, null); } private  BraveClient(HttpClient delegate, HttpTracing httpTracing); static Function<? super HttpClient, BraveClient> newDecorator(Tracing tracing); static Function<? super HttpClient, BraveClient> newDecorator(
            Tracing tracing, @Nullable String remoteServiceName); static Function<? super HttpClient, BraveClient> newDecorator(HttpTracing httpTracing); @Override HttpResponse execute(ClientRequestContext ctx, HttpRequest req);  }
@Test void newDecorator_shouldWorkWhenRequestContextCurrentTraceContextNotConfigured() { BraveClient.newDecorator(HttpTracing.create(Tracing.newBuilder().build())); }
@Test void newDecorator_shouldWorkWhenRequestContextCurrentTraceContextConfigured() { BraveClient.newDecorator( HttpTracing.create( Tracing.newBuilder().currentTraceContext(RequestContextCurrentTraceContext.ofDefault()) .build())); }