@Test
public void testPrintfNextTermFails() {

  try {
    int unused = PrintfMessageParser.nextPrintfTerm("Hello %", 0);
    fail("expected ParseException");
  } catch (ParseException expected) {
    assertThat(expected.getMessage()).contains("[%]");
  }
}