@Test
public void testBraceFormatNextTermFails() {

  try {
    int unused = BraceStyleMessageParser.nextBraceFormatTerm("Hello '", 0);
    fail("expected ParseException");
  } catch (ParseException expected) {
    assertThat(expected.getMessage()).contains("[']");
  }
  try {
    int unused = BraceStyleMessageParser.nextBraceFormatTerm("Hello 'World", 0);
    fail("expected ParseException");
  } catch (ParseException expected) {
    assertThat(expected.getMessage()).contains("['World]");
  }
}