//-------------------------------------------------------------------------
        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 virtual void test_serialization()
        {
            InflationEndInterpolatedRateComputation test = InflationEndInterpolatedRateComputation.of(GB_HICP, START_INDEX, END_MONTH_FIRST, WEIGHT);

            assertSerialization(test);
        }