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