@Test
void shouldFilterPrimitives() {

    final BodyFilter unit = replacePrimitiveJsonProperty(
            asList("foo", "bar", "baz")::contains, "XXX");
    final String actual = unit.filter(
            contentType,
            "{\"foo\":1.0,\"bar\":false,\"baz\":\"secret\"}");
    assertThat(actual,
            is("{\"foo\":\"XXX\",\"bar\":\"XXX\",\"baz\":\"XXX\"}"));
}