public 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());
 }
 public void test_wrongMonthOrder() {
   assertThrowsIllegalArg(
       () ->
           InflationInterpolatedRateComputation.of(
               GB_HICP, END_MONTH_FIRST, START_MONTH_FIRST, WEIGHT));
   assertThrowsIllegalArg(
       () ->
           InflationInterpolatedRateComputation.meta()
               .builder()
               .set(
                   InflationInterpolatedRateComputation.meta().startObservation(),
                   PriceIndexObservation.of(GB_HICP, YearMonth.of(2010, 1)))
               .set(
                   InflationInterpolatedRateComputation.meta().startSecondObservation(),
                   PriceIndexObservation.of(GB_HICP, YearMonth.of(2010, 1)))
               .set(
                   InflationInterpolatedRateComputation.meta().endObservation(),
                   PriceIndexObservation.of(GB_HICP, YearMonth.of(2010, 7)))
               .set(
                   InflationInterpolatedRateComputation.meta().endSecondObservation(),
                   PriceIndexObservation.of(GB_HICP, YearMonth.of(2010, 8)))
               .set(InflationInterpolatedRateComputation.meta().weight(), WEIGHT)
               .build());
   assertThrowsIllegalArg(
       () ->
           InflationInterpolatedRateComputation.meta()
               .builder()
               .set(
                   InflationInterpolatedRateComputation.meta().startObservation(),
                   PriceIndexObservation.of(GB_HICP, YearMonth.of(2010, 1)))
               .set(
                   InflationInterpolatedRateComputation.meta().startSecondObservation(),
                   PriceIndexObservation.of(GB_HICP, YearMonth.of(2010, 2)))
               .set(
                   InflationInterpolatedRateComputation.meta().endObservation(),
                   PriceIndexObservation.of(GB_HICP, YearMonth.of(2010, 7)))
               .set(
                   InflationInterpolatedRateComputation.meta().endSecondObservation(),
                   PriceIndexObservation.of(GB_HICP, YearMonth.of(2010, 7)))
               .set(InflationInterpolatedRateComputation.meta().weight(), WEIGHT)
               .build());
   assertThrowsIllegalArg(
       () ->
           InflationInterpolatedRateComputation.meta()
               .builder()
               .set(
                   InflationInterpolatedRateComputation.meta().startObservation(),
                   PriceIndexObservation.of(GB_HICP, YearMonth.of(2010, 8)))
               .set(
                   InflationInterpolatedRateComputation.meta().startSecondObservation(),
                   PriceIndexObservation.of(GB_HICP, YearMonth.of(2010, 9)))
               .set(
                   InflationInterpolatedRateComputation.meta().endObservation(),
                   PriceIndexObservation.of(GB_HICP, YearMonth.of(2010, 7)))
               .set(
                   InflationInterpolatedRateComputation.meta().endSecondObservation(),
                   PriceIndexObservation.of(GB_HICP, YearMonth.of(2010, 8)))
               .set(InflationInterpolatedRateComputation.meta().weight(), WEIGHT)
               .build());
 }