### Question:
OvernightFutureTemplate implements TradeTemplate, ImmutableBean, Serializable { public static OvernightFutureTemplate of(SequenceDate sequenceDate, OvernightFutureContractSpec contractSpec) { return new OvernightFutureTemplate(sequenceDate, contractSpec); } private  OvernightFutureTemplate(
      SequenceDate sequenceDate,
      OvernightFutureContractSpec contractSpec); static OvernightFutureTemplate of(SequenceDate sequenceDate, OvernightFutureContractSpec contractSpec); OvernightIndex getIndex(); OvernightFutureTrade createTrade(
      LocalDate tradeDate,
      SecurityId securityId,
      double quantity,
      double price,
      ReferenceData refData); LocalDate calculateReferenceDateFromTradeDate(LocalDate tradeDate, ReferenceData refData); LocalDate calculateLastFixingDateFromTradeDate(LocalDate tradeDate, ReferenceData refData); static TypedMetaBean<OvernightFutureTemplate> meta(); @Override TypedMetaBean<OvernightFutureTemplate> metaBean(); SequenceDate getSequenceDate(); OvernightFutureContractSpec getContractSpec(); @Override boolean equals(Object obj); @Override int hashCode(); @Override String toString();  }### Answer:
@Test public void coverage() { OvernightFutureTemplate test = OvernightFutureTemplate.of(SEQ_DATE, SPEC); coverImmutableBean(test); OvernightFutureTemplate test2 = OvernightFutureTemplate.of(SequenceDate.full(YEAR_MONTH), SPEC2); coverBeanEquals(test, test2); }
@Test public void test_serialization() { OvernightFutureTemplate test = OvernightFutureTemplate.of(SEQ_DATE, SPEC); assertSerialization(test); }