@Test
void appendWithMask() {

    var param = new BytesLogParam(Strings.bytes("{\"field1\":\"value1\",\"password\":\"pass123\",\"field2\":\"value2\"}"));
    var builder = new StringBuilder();
    param.append(builder, Set.of("password", "passwordConfirm"), 50);
    assertThat(builder.toString())
            .isEqualTo("{\"field1\":\"value1\",\"password\":\"******\",\"field2\":\"...(truncated)");
}