@Test
void appendDuration() {

    var event = new LogEvent("logger", null, LogLevel.DEBUG, null, null, null);
    var builder = new StringBuilder();
    event.appendDuration(builder, Duration.ofSeconds(34).plusMillis(145).toNanos());
    assertThat(builder.toString()).isEqualTo("00:34.145000000");
    builder = new StringBuilder();
    event.appendDuration(builder, Duration.ofMinutes(5).plusNanos(34512300).toNanos());
    assertThat(builder.toString()).isEqualTo("05:00.034512300");
    builder = new StringBuilder();
    event.appendDuration(builder, Duration.ofMinutes(30).plusSeconds(1).plusNanos(123).toNanos());
    assertThat(builder.toString()).isEqualTo("30:01.000000123");
}