### Question:
Schedule implements ScheduleInfo, ImmutableBean, Serializable { public static Schedule.Builder builder() { return new Schedule.Builder(); } private  Schedule(
      List<SchedulePeriod> periods,
      Frequency frequency,
      RollConvention rollConvention); static Schedule ofTerm(SchedulePeriod period); int size(); boolean isTerm(); boolean isSinglePeriod(); SchedulePeriod getPeriod(int index); SchedulePeriod getFirstPeriod(); SchedulePeriod getLastPeriod(); @Override LocalDate getStartDate(); @Override LocalDate getEndDate(); LocalDate getUnadjustedStartDate(); LocalDate getUnadjustedEndDate(); Optional<SchedulePeriod> getInitialStub(); Optional<SchedulePeriod> getFinalStub(); ImmutableList<SchedulePeriod> getRegularPeriods(); ImmutableList<LocalDate> getUnadjustedDates(); @Override boolean isEndOfMonthConvention(); @Override LocalDate getPeriodEndDate(LocalDate date); Schedule mergeToTerm(); Schedule merge(int groupSize, LocalDate firstRegularStartDate, LocalDate lastRegularEndDate); Schedule mergeRegular(int groupSize, boolean rollForwards); Schedule toAdjusted(DateAdjuster adjuster); Schedule toUnadjusted(); static Schedule.Meta meta(); static Schedule.Builder builder(); @Override Schedule.Meta metaBean(); ImmutableList<SchedulePeriod> getPeriods(); @Override Frequency getFrequency(); RollConvention getRollConvention(); Builder toBuilder(); @Override boolean equals(Object obj); @Override int hashCode(); @Override String toString();  }### Answer:
@Test public void test_of_size0() { assertThatIllegalArgumentException().isThrownBy(() -> Schedule.builder().periods(ImmutableList.of())); }
@Test public void coverage_builder() { Schedule.Builder builder = Schedule.builder(); builder .periods(P1_STUB) .frequency(P1M) .rollConvention(DAY_17) .build(); }
@Test public void coverage() { Schedule test = Schedule.builder() .periods(ImmutableList.of(P1_STUB, P2_NORMAL)) .frequency(P1M) .rollConvention(DAY_17) .build(); coverImmutableBean(test); }
@Test public void test_serialization() { Schedule test = Schedule.builder() .periods(ImmutableList.of(P1_STUB, P2_NORMAL)) .frequency(P1M) .rollConvention(DAY_17) .build(); assertSerialization(test); }