@Test
public void testWidthTooLarge() throws ParseException {

  FormatOptions options = FormatOptions.parse("%999999x", 1, 7, false);
  assertThat(options).hasWidth(999999);
  assertThat(options).hasPrecision(-1);
  assertThat(options).hasNoFlags();
  try {
    FormatOptions.parse("%1000000x", 1, 8, false);
    fail("expected ParseException");
  } catch (ParseException expected) {
  }
}