### Question:
GenericVolatilitySurfaceYearFractionParameterMetadata implements ParameterMetadata, ImmutableBean, Serializable { public static GenericVolatilitySurfaceYearFractionParameterMetadata of( double yearFraction, Strike strike) { String label = Pair.of(yearFraction, strike.getLabel()).toString(); return new GenericVolatilitySurfaceYearFractionParameterMetadata(yearFraction, null, strike, label); } private  GenericVolatilitySurfaceYearFractionParameterMetadata(
      double yearFraction,
      Tenor yearFractionTenor,
      Strike strike,
      String label); static GenericVolatilitySurfaceYearFractionParameterMetadata of(
      double yearFraction,
      Strike strike); static GenericVolatilitySurfaceYearFractionParameterMetadata of(
      double yearFraction,
      Tenor yearFractionTenor,
      Strike strike); static GenericVolatilitySurfaceYearFractionParameterMetadata of(
      double yearFraction,
      Strike strike,
      String label); static GenericVolatilitySurfaceYearFractionParameterMetadata of(
      double yearFraction,
      Tenor yearFractionTenor,
      Strike strike,
      String label); @Override Pair<Double, Strike> getIdentifier(); static GenericVolatilitySurfaceYearFractionParameterMetadata.Meta meta(); @Override GenericVolatilitySurfaceYearFractionParameterMetadata.Meta metaBean(); double getYearFraction(); Optional<Tenor> getYearFractionTenor(); Strike getStrike(); @Override String getLabel(); @Override boolean equals(Object obj); @Override int hashCode(); @Override String toString();  }### Answer:
@Test public void coverage() { GenericVolatilitySurfaceYearFractionParameterMetadata test1 = GenericVolatilitySurfaceYearFractionParameterMetadata.of(TIME_TO_EXPIRY, STRIKE1); coverImmutableBean(test1); GenericVolatilitySurfaceYearFractionParameterMetadata test2 = GenericVolatilitySurfaceYearFractionParameterMetadata.of(3d, MoneynessStrike.of(1.1d)); coverBeanEquals(test1, test2); }
@Test public void test_serialization() { GenericVolatilitySurfaceYearFractionParameterMetadata test = GenericVolatilitySurfaceYearFractionParameterMetadata.of(TIME_TO_EXPIRY, STRIKE1); assertSerialization(test); }