public void factory_parse_fail(String text, int pos) {

    try {
      YearMonth.parse(text);
      fail(String.format("Parse should have failed for %s at position %d", text, pos));
    } catch (DateTimeParseException ex) {
      assertEquals(ex.getParsedString(), text);
      assertEquals(ex.getErrorIndex(), pos);
      throw ex;
    }
  }

  // -----------------------------------------------------------------------
  @Test(expectedExceptions = DateTimeParseException.class, groups = { "tck" }