@Test
void shouldNotFilterFormUrlEncodedBodyIfNotValidContentType() {

    final BodyFilter unit = replaceFormUrlEncodedProperty(singleton("q"), "XXX");
    assertThat(unit.filter("application/json", "{\"q\":\"boots\"}"), is("{\"q\":\"boots\"}"));
    assertThat(unit.filter("application/xml", "<q>boots</q>"), is("<q>boots</q>"));
    assertThat(unit.filter("invalid", "{\"q\":\"boots\"}"), is("{\"q\":\"boots\"}"));
    assertThat(unit.filter(null, "{\"q\":\"boots\"}"), is("{\"q\":\"boots\"}"));
}