@Test
void filterWithBrokenJSON() {

    var param = new BytesLogParam(null, null);
    var value = "{\"field1\": \"value1\",\n  \"password\": \"pass123\",\n  \"passwordConfirm\": \"pass12";
    assertThat(param.filter(value, Set.of("password", "passwordConfirm"))).doesNotContain("pass123");
    value = "{\"field1\": \"value1\",\n  \"password\": \"pass123\",\n  \"passwordConfirm\"";
    assertThat(param.filter(value, Set.of("password", "passwordConfirm"))).doesNotContain("pass123");
    value = "{\"field1\": \"value1\", \"password\": \"pass123";
    assertThat(param.filter(value, Set.of("password", "passwordConfirm")).toString())
            .isEqualTo("{\"field1\": \"value1\", \"password\": \"******");
}