### Question:
FxResetNotionalExchange implements SwapPaymentEvent, ImmutableBean, Serializable { public static FxResetNotionalExchange of( CurrencyAmount notionalAmount, LocalDate paymentDate, FxIndexObservation observation) { return new FxResetNotionalExchange(notionalAmount, paymentDate, observation); } private  FxResetNotionalExchange(
      CurrencyAmount notionalAmount,
      LocalDate paymentDate,
      FxIndexObservation observation); static FxResetNotionalExchange of(
      CurrencyAmount notionalAmount,
      LocalDate paymentDate,
      FxIndexObservation observation); @Override Currency getCurrency(); Currency getReferenceCurrency(); double getNotional(); @Override FxResetNotionalExchange adjustPaymentDate(TemporalAdjuster adjuster); static FxResetNotionalExchange.Meta meta(); @Override FxResetNotionalExchange.Meta metaBean(); CurrencyAmount getNotionalAmount(); @Override LocalDate getPaymentDate(); FxIndexObservation getObservation(); @Override boolean equals(Object obj); @Override int hashCode(); @Override String toString();  }### Answer:
@Test public void coverage() { FxResetNotionalExchange test = FxResetNotionalExchange.of( CurrencyAmount.of(USD, 1000d), DATE_2014_03_28, FxIndexObservation.of(GBP_USD_WM, DATE_2014_03_28, REF_DATA)); coverImmutableBean(test); FxResetNotionalExchange test2 = FxResetNotionalExchange.of( CurrencyAmount.of(EUR, 2000d), DATE_2014_06_30, FxIndexObservation.of(EUR_USD_ECB, DATE_2014_06_30, REF_DATA)); coverBeanEquals(test, test2); }
@Test public void test_serialization() { FxResetNotionalExchange test = FxResetNotionalExchange.of( CurrencyAmount.of(USD, 1000d), DATE_2014_06_30, FxIndexObservation.of(GBP_USD_WM, DATE_2014_03_28, REF_DATA)); assertSerialization(test); }