}
@Test
public void testSchedule() {
final Calendar calendar = new Target();
final Period maturity = new Period(30, TimeUnit.Years);
final Date maturityDate = startDate.add(maturity);
final Period accPeriodTenor = new Period(6, TimeUnit.Months);
final BusinessDayConvention modFollow = BusinessDayConvention.ModifiedFollowing;
final DateGeneration.Rule dateRule = DateGeneration.Rule.Backward;
final Schedule firstConstrSchedule = new Schedule(
startDate, maturityDate, accPeriodTenor,
calendar, modFollow, modFollow,
dateRule, false, null, null);
final List<Date> dates = new ArrayList<Date>();
dates.add(startDate);
dates.add(calendar.advance(startDate, new Period(10, TimeUnit.Weeks),modFollow));
final Schedule secondConstrSchedule = new Schedule(dates, calendar, modFollow);
testDateAfter(firstConstrSchedule);
testDateAfter(secondConstrSchedule);