if (d1.getYear() == forward[i - 1].getYear()) {
assertEquals(d1.getMonthValue() - forward[i - 1].getMonthValue(), 1);
} else {
assertEquals(d1.getMonthValue() - forward[i - 1].getMonthValue(), -11);
}
assertEquals(d1.getDayOfMonth(), d1.lengthOfMonth());
}
assertArrayEquals(CALCULATOR.getSchedule(startDate, endDate, true, false), forward);
assertArrayEquals(CALCULATOR.getSchedule(startDate, endDate, true, true), forward);
assertArrayEquals(CALCULATOR.getSchedule(startDate, endDate, false, false), forward);
assertArrayEquals(CALCULATOR.getSchedule(startDate, endDate, false, true), forward);