FilteredHttpRequest implements ForwardingHttpRequest { @Override public HttpHeaders getHeaders() { return headers; } FilteredHttpRequest(final HttpRequest request,
            final QueryFilter queryFilter,
            final PathFilter pathFilter, 
            final HeaderFilter headerFilter,
            final BodyFilter bodyFilter); @Override HttpRequest delegate(); @Override HttpHeaders getHeaders(); @Override String getRequestUri(); @Override String getPath(); @Override String getQuery(); @Override HttpRequest withBody(); @Override HttpRequest withoutBody(); @Override byte[] getBody(); @Override String getBodyAsString();  }
@Test void shouldFilterAuthorizationHeader() { assertThat(unit.getHeaders(), hasEntry(equalTo("Authorization"), contains("XXX"))); }
@Test void shouldNotFilterAcceptHeader() { assertThat(unit.getHeaders(), hasEntry(equalTo("Accept"), contains("text/plain"))); }