### Question:
SwapLegAmount implements LegAmount, ImmutableBean, Serializable { public static SwapLegAmount.Builder builder() { return new SwapLegAmount.Builder(); } private  SwapLegAmount(
      CurrencyAmount amount,
      PayReceive payReceive,
      SwapLegType type,
      Currency currency); static SwapLegAmount of(ResolvedSwapLeg leg, CurrencyAmount amount); @Override SwapLegAmount convertedTo(Currency resultCurrency, FxRateProvider rateProvider); static SwapLegAmount.Meta meta(); static SwapLegAmount.Builder builder(); @Override SwapLegAmount.Meta metaBean(); @Override CurrencyAmount getAmount(); PayReceive getPayReceive(); SwapLegType getType(); Currency getCurrency(); Builder toBuilder(); @Override boolean equals(Object obj); @Override int hashCode(); @Override String toString();  }### Answer:
@Test public void test_serialization() { SwapLegAmount la = SwapLegAmount.builder() .amount(CURRENCY_AMOUNT) .payReceive(PayReceive.PAY) .type(SwapLegType.FIXED) .currency(Currency.EUR) .build(); assertSerialization(la); }