Date nonLeapMonthDate = cal.getTime(); // non-leap month
cal.set(2009, Calendar.JUNE, 23); // 26x78-5*-1
Date leapMonthDate = cal.getTime(); // leap month
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));
}