### Question:
FxOptionVolatilitiesDefinition implements ImmutableBean, Serializable { public static FxOptionVolatilitiesDefinition of(FxOptionVolatilitiesSpecification specification) { return new FxOptionVolatilitiesDefinition(specification); } private  FxOptionVolatilitiesDefinition(
      FxOptionVolatilitiesSpecification specification); static FxOptionVolatilitiesDefinition of(FxOptionVolatilitiesSpecification specification); FxOptionVolatilities volatilities(
      ZonedDateTime valuationDateTime,
      DoubleArray parameters,
      ReferenceData refData); ImmutableList<QuoteId> volatilitiesInputs(); int getParameterCount(); static FxOptionVolatilitiesDefinition.Meta meta(); @Override FxOptionVolatilitiesDefinition.Meta metaBean(); FxOptionVolatilitiesSpecification getSpecification(); @Override boolean equals(Object obj); @Override int hashCode(); @Override String toString();  }### Answer:
@Test public void coverage() { FxOptionVolatilitiesDefinition test1 = FxOptionVolatilitiesDefinition.of(SPEC); coverImmutableBean(test1); BlackFxOptionSmileVolatilitiesSpecification spec2 = BlackFxOptionSmileVolatilitiesSpecification.builder() .name(VOL_NAME) .currencyPair(EUR_GBP) .dayCount(ACT_360) .nodes(NODES) .timeInterpolator(LINEAR) .strikeInterpolator(LINEAR) .build(); FxOptionVolatilitiesDefinition test2 = FxOptionVolatilitiesDefinition.of(spec2); coverBeanEquals(test1, test2); }
@Test public void serialization() { FxOptionVolatilitiesDefinition test = FxOptionVolatilitiesDefinition.of(SPEC); assertSerialization(test); }