### Question:
LegAmounts implements FxConvertible<LegAmounts>, ImmutableBean, Serializable { public static LegAmounts of(List<LegAmount> amounts) { return new LegAmounts(amounts); } private  LegAmounts(
      List<LegAmount> amounts); static LegAmounts of(List<LegAmount> amounts); static LegAmounts of(LegAmount... amounts); @Override LegAmounts convertedTo(Currency resultCurrency, FxRateProvider rateProvider); static LegAmounts.Meta meta(); @Override LegAmounts.Meta metaBean(); ImmutableList<LegAmount> getAmounts(); @Override boolean equals(Object obj); @Override int hashCode(); @Override String toString();  }### Answer:
@Test public void coverage() { LegAmounts test1 = LegAmounts.of(LEG_AMOUNT_1, LEG_AMOUNT_2); coverImmutableBean(test1); LegAmount swapLeg = SwapLegAmount.builder() .amount(CurrencyAmount.of(Currency.GBP, 1557.445)) .payReceive(PayReceive.PAY) .type(SwapLegType.FIXED) .currency(Currency.EUR) .build(); LegAmounts test2 = LegAmounts.of(swapLeg); coverBeanEquals(test1, test2); }
@Test public void test_serialization() { LegAmounts test = LegAmounts.of(LEG_AMOUNT_1, LEG_AMOUNT_2); assertSerialization(test); }