@Test
void shouldReplaceImageBodyByDefault() throws IOException {

    final RequestFilter filter = RequestFilters.defaultValue();
    final HttpRequest request = filter.filter(MockHttpRequest.create()
            .withContentType("image/png")
            .withBodyAsString("this is an image"));
    request.withBody();
    assertThat(request.getContentType(), is("image/png"));
    assertThat(request.getContentType(), is("image/png"));
    assertThat(request.getBody(), is("<binary>".getBytes(UTF_8)));
    assertThat(request.getBodyAsString(), is("<binary>"));
}