@Test
void shouldReplaceImageBodyEvenWithoutBody() throws IOException {

    final ResponseFilter filter = ResponseFilters.defaultValue();
    final HttpResponse response = filter.filter(MockHttpResponse.create()
            .withContentType("image/png")
            .withBodyAsString("this is an image"));
    response.withoutBody();
    assertThat(response.getContentType(), is("image/png"));
    assertThat(response.getContentType(), is("image/png"));
    assertThat(response.getBody(), is("<binary>".getBytes(UTF_8)));
    assertThat(response.getBodyAsString(), is("<binary>"));
}