FilteredHttpRequest implements ForwardingHttpRequest { @Override public String getBodyAsString() throws IOException { return bodyFilter.filter(getContentType(), request.getBodyAsString()); } 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 shouldFilterBody() throws IOException { assertThat(unit.getBodyAsString(), is("My secret is f4k3")); }