}
static void testAssignYearField(EraCalc eraCalc, int minYear, int maxYear) {
DateFields dateFields = new DateFields();
for (int y = minYear; y <= maxYear; y++) {
// Case 1: Beginning of year. Offset should be 0 ms.
double ts = javaDate(y, 0, 1).getTime();
double yearOffsetInMs = eraCalc.calcYearField(ts, dateFields);