@Test
public void testBadFlags() {

  try {
    // not a flag
    FormatOptions.parse("%", 0, 1, false);
    fail("expected ParseException");
  } catch (ParseException expected) {
  }
  try {
    // duplicate flags
    FormatOptions.parse("-#-", 0, 3, false);
    fail("expected ParseException");
  } catch (ParseException expected) {
  }
}