ChineseDateFormat cdf = new ChineseDateFormat("y'x'G-Ml-d", ULocale.US);
acit = cdf.formatToCharacterIterator(nonLeapMonthDate);
Set keys = acit.getAllAttributeKeys();
if (keys.contains(ChineseDateFormat.Field.IS_LEAP_MONTH)) {
errln("FAIL: IS_LEAP_MONTH attribute must not present for Chinese calendar date "
+ cdf.format(nonLeapMonthDate));
}
acit = cdf.formatToCharacterIterator(leapMonthDate);
keys = acit.getAllAttributeKeys();
if (!keys.contains(ChineseDateFormat.Field.IS_LEAP_MONTH)) {
errln("FAIL: IS_LEAP_MONTH attribute must present for Chinese calendar date "