### Question:
PaymentSchedule implements ImmutableBean, Serializable { public static PaymentSchedule.Builder builder() { return new PaymentSchedule.Builder(); } private  PaymentSchedule(
      Frequency paymentFrequency,
      BusinessDayAdjustment businessDayAdjustment,
      PaymentRelativeTo paymentRelativeTo,
      DaysAdjustment paymentDateOffset,
      CompoundingMethod compoundingMethod,
      LocalDate firstRegularStartDate,
      LocalDate lastRegularEndDate); Schedule createSchedule(Schedule accrualSchedule, ReferenceData refData); static PaymentSchedule.Meta meta(); static PaymentSchedule.Builder builder(); @Override PaymentSchedule.Meta metaBean(); Frequency getPaymentFrequency(); Optional<BusinessDayAdjustment> getBusinessDayAdjustment(); PaymentRelativeTo getPaymentRelativeTo(); DaysAdjustment getPaymentDateOffset(); CompoundingMethod getCompoundingMethod(); Optional<LocalDate> getFirstRegularStartDate(); Optional<LocalDate> getLastRegularEndDate(); Builder toBuilder(); @Override boolean equals(Object obj); @Override int hashCode(); @Override String toString();  }### Answer:
@Test public void coverage() { PaymentSchedule test = PaymentSchedule.builder() .paymentFrequency(P1M) .paymentDateOffset(DaysAdjustment.ofBusinessDays(2, GBLO)) .build(); coverImmutableBean(test); PaymentSchedule test2 = PaymentSchedule.builder() .paymentFrequency(P3M) .businessDayAdjustment(BDA) .paymentDateOffset(DaysAdjustment.ofBusinessDays(3, GBLO)) .paymentRelativeTo(PERIOD_START) .compoundingMethod(STRAIGHT) .firstRegularStartDate(DATE_01_06) .lastRegularEndDate(DATE_02_05) .build(); coverBeanEquals(test, test2); }
@Test public void test_serialization() { PaymentSchedule test = PaymentSchedule.builder() .paymentFrequency(P3M) .paymentDateOffset(DaysAdjustment.ofBusinessDays(2, GBLO)) .build(); assertSerialization(test); }