### Question:
SabrSwaptionDefinition implements ImmutableBean, Serializable { public static SabrSwaptionDefinition of( SwaptionVolatilitiesName name, FixedIborSwapConvention convention, DayCount dayCount, SurfaceInterpolator interpolator) { return new SabrSwaptionDefinition(name, convention, dayCount, interpolator); } private  SabrSwaptionDefinition(
      SwaptionVolatilitiesName name,
      FixedIborSwapConvention convention,
      DayCount dayCount,
      SurfaceInterpolator interpolator); static SabrSwaptionDefinition of(
      SwaptionVolatilitiesName name,
      FixedIborSwapConvention convention,
      DayCount dayCount,
      SurfaceInterpolator interpolator); static SabrSwaptionDefinition.Meta meta(); @Override SabrSwaptionDefinition.Meta metaBean(); SwaptionVolatilitiesName getName(); FixedIborSwapConvention getConvention(); DayCount getDayCount(); SurfaceInterpolator getInterpolator(); @Override boolean equals(Object obj); @Override int hashCode(); @Override String toString();  }### Answer:
@Test public void of() { SabrSwaptionDefinition test = SabrSwaptionDefinition.of(NAME, CONVENTION, DAY_COUNT, INTERPOLATOR_2D); assertThat(test.getName()).isEqualTo(NAME); assertThat(test.getConvention()).isEqualTo(CONVENTION); assertThat(test.getDayCount()).isEqualTo(DAY_COUNT); assertThat(test.getInterpolator()).isEqualTo(INTERPOLATOR_2D); }
@Test public void coverage() { SabrSwaptionDefinition test = SabrSwaptionDefinition.of(NAME, CONVENTION, DAY_COUNT, INTERPOLATOR_2D); coverImmutableBean(test); SabrSwaptionDefinition test2 = SabrSwaptionDefinition.of(NAME2, CONVENTION2, DAY_COUNT2, INTERPOLATOR_2D2); coverBeanEquals(test, test2); }
@Test public void test_serialization() { SabrSwaptionDefinition test = SabrSwaptionDefinition.of(NAME, CONVENTION, DAY_COUNT, INTERPOLATOR_2D); assertSerialization(test); }