@Test
public void testLogPrinter() throws UnsupportedEncodingException {

  LogPrinter printer = new LogPrinter(DateTimeFormatter.ISO_DATE_TIME.withZone(ZoneId.of("Z")),
          StandardCharsets.UTF_8);
  ByteArrayOutputStream bos = new ByteArrayOutputStream();
  printer.print(new Slf4jLogRecordImpl("test", Level.DEBUG, "my message {} {} ", "1", "2", "3"), bos);
  String logMsg = bos.toString(StandardCharsets.UTF_8.name());
  Assert.assertThat(logMsg, Matchers.containsString("DEBUG test \"main\" \"my message 1 2 \" [\"3\"]"));
}