ArgumentChecker.isTrue(n == accEnd.length, null);
final LocalDate startDate = LocalDate.of(2012, 6, 30); // Saturday
final LocalDate endDate = LocalDate.of(2013, 12, 20); // IMM date
final Period step = Period.ofMonths(3);
final StubType stubType = StubType.FRONTLONG;
final boolean protectionStart = true;
final ISDAPremiumLegSchedule schedule = new ISDAPremiumLegSchedule(startDate, endDate, step, stubType, FOLLOWING, CALENDAR, protectionStart);
assertEquals(n, schedule.getNumPayments());
for (int i = 0; i < n; i++) {