@Test
public void testGapsInArgsUpTo32AreCaught() {

  // 33 arguments with the 32rd argument unreferenced.
  LogData data =
      FakeLogData.withPrintfStyle(
          "%s %s %s %s %s %s %s %s %s %s %s %s %s %s %s %s "
              + "%s %s %s %s %s %s %s %s %s %s %s %s %s %s %s %33$s",
          new Object[33]);
  try {
    SimpleLogRecord.create(data);
    fail("expected ParseException");
  } catch (ParseException expected) {
    assertThat(expected.getMessage()).contains("unreferenced arguments [first missing index=31]");
  }
}