@Test
public void testToString_b31405251() {

  // Test once with arguments and once without (LogData behaves differently in each case).
  LogData data = FakeLogData.withPrintfStyle("Answer=%d", 42);
  String toString = SimpleLogRecord.create(data).toString();
  // From the SimpleLogRecord point of view, we don't have arguments after formatting.
  assertThat(toString).contains("  message: Answer=42");
  assertThat(toString).contains("  arguments: <none>");
  assertThat(toString).contains("  original message: Answer=%d");
  data = FakeLogData.of("Literal String");
  toString = SimpleLogRecord.create(data).toString();
  assertThat(toString).contains("  message: Literal String");
  assertThat(toString).contains("  arguments: <none>");
  assertThat(toString).contains("  original message: Literal String");
}