### Question:
CashSwaptionSettlement implements SwaptionSettlement, ImmutableBean, Serializable { public static CashSwaptionSettlement of(LocalDate settlementDate, CashSwaptionSettlementMethod method) { return new CashSwaptionSettlement(settlementDate, method); } private  CashSwaptionSettlement(
      LocalDate settlementDate,
      CashSwaptionSettlementMethod method); static CashSwaptionSettlement of(LocalDate settlementDate, CashSwaptionSettlementMethod method); @Override SettlementType getSettlementType(); static CashSwaptionSettlement.Meta meta(); @Override CashSwaptionSettlement.Meta metaBean(); LocalDate getSettlementDate(); CashSwaptionSettlementMethod getMethod(); @Override boolean equals(Object obj); @Override int hashCode(); @Override String toString();  }### Answer:
@Test public void coverage() { CashSwaptionSettlement test = CashSwaptionSettlement.of(date(2015, 6, 30), CashSwaptionSettlementMethod.CASH_PRICE); coverImmutableBean(test); CashSwaptionSettlement test2 = CashSwaptionSettlement.of(date(2015, 7, 30), CashSwaptionSettlementMethod.PAR_YIELD); coverBeanEquals(test, test2); coverEnum(CashSwaptionSettlementMethod.class); coverEnum(SettlementType.class); }
@Test public void test_serialization() { CashSwaptionSettlement test = CashSwaptionSettlement.of(date(2015, 6, 30), CashSwaptionSettlementMethod.CASH_PRICE); assertSerialization(test); }