@Test
void appendWithTruncation() {

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