### Question:
AbsoluteAddressHttpRequesterFilter implements StreamingHttpClientFilterFactory,
                                                          StreamingHttpConnectionFilterFactory,
                                                          HttpExecutionStrategyInfluencer { private Single<StreamingHttpResponse> request(final StreamingHttpRequester delegate, final HttpExecutionStrategy strategy, final StreamingHttpRequest request) { final String effectiveRequestUri = getEffectiveRequestUri(request, scheme, authority, false); request.requestTarget(effectiveRequestUri); return delegate.request(strategy, request); } AbsoluteAddressHttpRequesterFilter(String scheme, CharSequence authority); @Override StreamingHttpClientFilter create(final FilterableStreamingHttpClient client); @Override StreamingHttpConnectionFilter create(final FilterableStreamingHttpConnection connection); @Override HttpExecutionStrategy influenceStrategy(final HttpExecutionStrategy strategy);  }### Answer:
@Test public void shouldNotAddAuthorityToAbsoluteFormRequestTarget() { request.requestTarget("https: filter.request(noOffloadsStrategy(), request); verify(delegate).request(any(), requestCapture.capture()); final StreamingHttpRequest capturedRequest = requestCapture.getValue(); assertThat(capturedRequest.requestTarget(), is("https: }
@Test public void shouldAddAuthorityToOriginFormRequestTarget() { request.requestTarget("/path?query"); filter.request(noOffloadsStrategy(), request); verify(delegate).request(any(), requestCapture.capture()); final StreamingHttpRequest capturedRequest = requestCapture.getValue(); assertThat(capturedRequest.requestTarget(), is("http: }