//-------------------------------------------------------------------------
        public virtual void test_collectIndices()
        {
            InflationEndInterpolatedRateComputation test = InflationEndInterpolatedRateComputation.of(GB_HICP, START_INDEX, END_MONTH_FIRST, WEIGHT);

            ImmutableSet.Builder <Index> builder = ImmutableSet.builder();
            test.collectIndices(builder);
            assertEquals(builder.build(), ImmutableSet.of(GB_HICP));
        }
        //-------------------------------------------------------------------------
        public virtual 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);
        }
        //-------------------------------------------------------------------------
        public virtual void test_of()
        {
            InflationEndInterpolatedRateComputation test = InflationEndInterpolatedRateComputation.of(GB_HICP, START_INDEX, END_MONTH_FIRST, WEIGHT);

            assertEquals(test.Index, GB_HICP);
            assertEquals(test.EndObservation.FixingMonth, END_MONTH_FIRST);
            assertEquals(test.EndSecondObservation.FixingMonth, END_MONTH_SECOND);
            assertEquals(test.StartIndexValue, START_INDEX);
            assertEquals(test.Weight, WEIGHT, 1.0e-14);
        }
 //-----------------------------------------------------------------------
 public override bool Equals(object obj)
 {
     if (obj == this)
     {
         return(true);
     }
     if (obj != null && obj.GetType() == this.GetType())
     {
         InflationEndInterpolatedRateComputation other = (InflationEndInterpolatedRateComputation)obj;
         return(JodaBeanUtils.equal(startIndexValue, other.startIndexValue) && JodaBeanUtils.equal(endObservation, other.endObservation) && JodaBeanUtils.equal(endSecondObservation, other.endSecondObservation) && JodaBeanUtils.equal(weight, other.weight));
     }
     return(false);
 }
        public virtual void test_serialization()
        {
            InflationEndInterpolatedRateComputation test = InflationEndInterpolatedRateComputation.of(GB_HICP, START_INDEX, END_MONTH_FIRST, WEIGHT);

            assertSerialization(test);
        }
 public virtual void test_wrongMonthOrder()
 {
     assertThrowsIllegalArg(() => InflationEndInterpolatedRateComputation.meta().builder().set(InflationEndInterpolatedRateComputation.meta().startIndexValue(), START_INDEX).set(InflationEndInterpolatedRateComputation.meta().endObservation(), PriceIndexObservation.of(GB_HICP, YearMonth.of(2010, 7))).set(InflationEndInterpolatedRateComputation.meta().endSecondObservation(), PriceIndexObservation.of(GB_HICP, YearMonth.of(2010, 7))).set(InflationEndInterpolatedRateComputation.meta().weight(), WEIGHT).build());
 }