### Question:
FxVolatilitySurfaceYearFractionParameterMetadata implements ParameterMetadata, ImmutableBean, Serializable { public static FxVolatilitySurfaceYearFractionParameterMetadata.Meta meta() { return FxVolatilitySurfaceYearFractionParameterMetadata.Meta.INSTANCE; } private  FxVolatilitySurfaceYearFractionParameterMetadata(
      double yearFraction,
      Tenor yearFractionTenor,
      Strike strike,
      CurrencyPair currencyPair,
      String label); static FxVolatilitySurfaceYearFractionParameterMetadata of(
      double yearFraction,
      Strike strike,
      CurrencyPair currencyPair); static FxVolatilitySurfaceYearFractionParameterMetadata of(
      double yearFraction,
      Tenor yearFractionTenor,
      Strike strike,
      CurrencyPair currencyPair); static FxVolatilitySurfaceYearFractionParameterMetadata of(
      double yearFraction,
      Strike strike,
      String label,
      CurrencyPair currencyPair); static FxVolatilitySurfaceYearFractionParameterMetadata of(
      double yearFraction,
      Tenor yearFractionTenor,
      Strike strike,
      String label,
      CurrencyPair currencyPair); @Override Pair<Double, Strike> getIdentifier(); static FxVolatilitySurfaceYearFractionParameterMetadata.Meta meta(); @Override FxVolatilitySurfaceYearFractionParameterMetadata.Meta metaBean(); double getYearFraction(); Optional<Tenor> getYearFractionTenor(); Strike getStrike(); CurrencyPair getCurrencyPair(); @Override String getLabel(); @Override boolean equals(Object obj); @Override int hashCode(); @Override String toString();  }### Answer:
@Test public void test_builder_incomplete() { BeanBuilder<? extends FxVolatilitySurfaceYearFractionParameterMetadata> builder1 = FxVolatilitySurfaceYearFractionParameterMetadata.meta().builder(); assertThatIllegalArgumentException() .isThrownBy(() -> builder1.build()); BeanBuilder<? extends FxVolatilitySurfaceYearFractionParameterMetadata> builder2 = FxVolatilitySurfaceYearFractionParameterMetadata.meta().builder(); builder2.set(FxVolatilitySurfaceYearFractionParameterMetadata.meta().yearFraction(), TIME_TO_EXPIRY); assertThatIllegalArgumentException() .isThrownBy(() -> builder2.build()); }