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)))