@Test
public void testWithPrintfFormatting() {

  LogData data = FakeLogData.withPrintfStyle("Hex=%#08x, Int=%1$d", 0xC0DE);
  LogRecord record = SimpleLogRecord.create(data);
  assertThat(record.getLevel()).isEqualTo(Level.INFO);
  assertThat(record.getMessage()).isEqualTo("Hex=0x00c0de, Int=49374");
  assertThat(record.getParameters()).isNull();
}