@Test
void appendWithTruncation() {

    Map<String, byte[]> values = new LinkedHashMap<>(); // make map order deterministic for result
    values.put("k1", bytes("v1"));
    values.put("k2", bytes("v2"));
    var param = new BytesMapLogParam(values);
    var builder = new StringBuilder();
    param.append(builder, Set.of(), 5);
    assertThat(builder.toString())
            .isEqualTo("{k1=v...(truncated)");
}