### Question:
InflationInterpolatedRateComputation implements RateComputation, ImmutableBean, Serializable { public static InflationInterpolatedRateComputation of( PriceIndex index, YearMonth referenceStartMonth, YearMonth referenceEndMonth, double weight) { return new InflationInterpolatedRateComputation( PriceIndexObservation.of(index, referenceStartMonth), PriceIndexObservation.of(index, referenceStartMonth.plusMonths(1)), PriceIndexObservation.of(index, referenceEndMonth), PriceIndexObservation.of(index, referenceEndMonth.plusMonths(1)), weight); } private  InflationInterpolatedRateComputation(
      PriceIndexObservation startObservation,
      PriceIndexObservation startSecondObservation,
      PriceIndexObservation endObservation,
      PriceIndexObservation endSecondObservation,
      double weight); static InflationInterpolatedRateComputation of(
      PriceIndex index,
      YearMonth referenceStartMonth,
      YearMonth referenceEndMonth,
      double weight); PriceIndex getIndex(); @Override void collectIndices(ImmutableSet.Builder<Index> builder); static InflationInterpolatedRateComputation.Meta meta(); @Override InflationInterpolatedRateComputation.Meta metaBean(); PriceIndexObservation getStartObservation(); PriceIndexObservation getStartSecondObservation(); PriceIndexObservation getEndObservation(); PriceIndexObservation getEndSecondObservation(); double getWeight(); @Override boolean equals(Object obj); @Override int hashCode(); @Override String toString();  }### Answer:
@Test public void coverage() { InflationInterpolatedRateComputation test1 = InflationInterpolatedRateComputation.of( GB_HICP, START_MONTH_FIRST, END_MONTH_FIRST, WEIGHT); coverImmutableBean(test1); InflationInterpolatedRateComputation test2 = InflationInterpolatedRateComputation.of( CH_CPI, YearMonth.of(2010, 1), YearMonth.of(2010, 7), WEIGHT + 0.1d); coverBeanEquals(test1, test2); }
@Test public void test_serialization() { InflationInterpolatedRateComputation test = InflationInterpolatedRateComputation.of( GB_HICP, START_MONTH_FIRST, END_MONTH_FIRST, WEIGHT); assertSerialization(test); }