### Question:
FxIndexObservation implements IndexObservation, ImmutableBean, Serializable { public static FxIndexObservation of(FxIndex index, LocalDate fixingDate, ReferenceData refData) { LocalDate maturityDate = index.calculateMaturityFromFixing(fixingDate, refData); return new FxIndexObservation(index, fixingDate, maturityDate); } FxIndexObservation(
      FxIndex index,
      LocalDate fixingDate,
      LocalDate maturityDate); static FxIndexObservation of(FxIndex index, LocalDate fixingDate, ReferenceData refData); CurrencyPair getCurrencyPair(); @Override boolean equals(Object obj); @Override int hashCode(); @Override String toString(); static FxIndexObservation.Meta meta(); @Override FxIndexObservation.Meta metaBean(); @Override FxIndex getIndex(); LocalDate getFixingDate(); LocalDate getMaturityDate();  }### Answer:
@Test public void coverage() { FxIndexObservation test = FxIndexObservation.of(GBP_USD_WM, FIXING_DATE, REF_DATA); coverImmutableBean(test); FxIndexObservation test2 = FxIndexObservation.of(EUR_GBP_ECB, FIXING_DATE.plusDays(1), REF_DATA); coverBeanEquals(test, test2); }
@Test public void test_serialization() { FxIndexObservation test = FxIndexObservation.of(GBP_USD_WM, FIXING_DATE, REF_DATA); assertSerialization(test); }