### Question:
KnownAmountSwapLeg implements ScheduledSwapLeg, ImmutableBean, Serializable { public static KnownAmountSwapLeg.Builder builder() { return new KnownAmountSwapLeg.Builder(); } private  KnownAmountSwapLeg(
      PayReceive payReceive,
      PeriodicSchedule accrualSchedule,
      PaymentSchedule paymentSchedule,
      ValueSchedule amount,
      Currency currency); @Override @DerivedProperty SwapLegType getType(); @Override @DerivedProperty AdjustableDate getStartDate(); @Override @DerivedProperty AdjustableDate getEndDate(); @Override void collectCurrencies(ImmutableSet.Builder<Currency> builder); @Override void collectIndices(ImmutableSet.Builder<Index> builder); @Override ResolvedSwapLeg resolve(ReferenceData refData); static KnownAmountSwapLeg.Meta meta(); static KnownAmountSwapLeg.Builder builder(); @Override KnownAmountSwapLeg.Meta metaBean(); @Override PayReceive getPayReceive(); @Override PeriodicSchedule getAccrualSchedule(); @Override PaymentSchedule getPaymentSchedule(); ValueSchedule getAmount(); @Override Currency getCurrency(); Builder toBuilder(); @Override boolean equals(Object obj); @Override int hashCode(); @Override String toString();  }### Answer:
@Test public void coverage() { KnownAmountSwapLeg test = KnownAmountSwapLeg.builder() .payReceive(PAY) .accrualSchedule(PeriodicSchedule.builder() .startDate(DATE_01_05) .endDate(DATE_04_05) .frequency(P1M) .businessDayAdjustment(BusinessDayAdjustment.of(FOLLOWING, GBLO)) .build()) .paymentSchedule(PaymentSchedule.builder() .paymentFrequency(P1M) .paymentDateOffset(PLUS_TWO_DAYS) .build()) .amount(ValueSchedule.of(123d)) .currency(GBP) .build(); coverImmutableBean(test); KnownAmountSwapLeg test2 = KnownAmountSwapLeg.builder() .payReceive(RECEIVE) .accrualSchedule(PeriodicSchedule.builder() .startDate(DATE_02_05) .endDate(DATE_03_05) .frequency(P1M) .businessDayAdjustment(BusinessDayAdjustment.of(FOLLOWING, GBLO)) .build()) .paymentSchedule(PaymentSchedule.builder() .paymentFrequency(P1M) .paymentDateOffset(PLUS_THREE_DAYS) .build()) .amount(ValueSchedule.of(2000d)) .currency(EUR) .build(); coverBeanEquals(test, test2); }
@Test public void test_serialization() { KnownAmountSwapLeg test = KnownAmountSwapLeg.builder() .payReceive(PAY) .accrualSchedule(PeriodicSchedule.builder() .startDate(DATE_01_05) .endDate(DATE_04_05) .frequency(P1M) .businessDayAdjustment(BusinessDayAdjustment.of(FOLLOWING, GBLO)) .build()) .paymentSchedule(PaymentSchedule.builder() .paymentFrequency(P1M) .paymentDateOffset(DaysAdjustment.ofBusinessDays(2, GBLO)) .build()) .amount(ValueSchedule.of(123d)) .currency(GBP) .build(); assertSerialization(test); }