}
System.out.println("\nTestIslamicChronology.testCalendar");
DateTime epoch = new DateTime(1, 1, 1, 0, 0, 0, 0, ISLAMIC_UTC);
long millis = epoch.getMillis();
long end = new DateTime(3000, 1, 1, 0, 0, 0, 0, ISO_UTC).getMillis();
DateTimeField dayOfWeek = ISLAMIC_UTC.dayOfWeek();
DateTimeField dayOfYear = ISLAMIC_UTC.dayOfYear();
DateTimeField dayOfMonth = ISLAMIC_UTC.dayOfMonth();
DateTimeField monthOfYear = ISLAMIC_UTC.monthOfYear();
DateTimeField year = ISLAMIC_UTC.year();
DateTimeField yearOfEra = ISLAMIC_UTC.yearOfEra();
DateTimeField era = ISLAMIC_UTC.era();
int expectedDOW = new DateTime(622, 7, 16, 0, 0, 0, 0, JULIAN_UTC).getDayOfWeek();
int expectedDOY = 1;
int expectedDay = 1;
int expectedMonth = 1;
int expectedYear = 1;
while (millis < end) {
int dowValue = dayOfWeek.get(millis);
int doyValue = dayOfYear.get(millis);
int dayValue = dayOfMonth.get(millis);
int monthValue = monthOfYear.get(millis);
int yearValue = year.get(millis);
int yearOfEraValue = yearOfEra.get(millis);
int dayOfYearLen = dayOfYear.getMaximumValue(millis);
int monthLen = dayOfMonth.getMaximumValue(millis);
if (monthValue < 1 || monthValue > 12) {
fail("Bad month: " + millis);
}
// test era
assertEquals(1, era.get(millis));
assertEquals("AH", era.getAsText(millis));
assertEquals("AH", era.getAsShortText(millis));
// test date
assertEquals(expectedDOY, doyValue);
assertEquals(expectedMonth, monthValue);
assertEquals(expectedDay, dayValue);