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().weight(), WEIGHT) .build()); assertThrowsIllegalArg(() -> InflationInterpolatedRateComputation.meta().builder() .set(InflationInterpolatedRateComputation.meta().startObservation(), PriceIndexObservation.of(GB_HICP, YearMonth.of(2010, 1))) .set(InflationInterpolatedRateComputation.meta().weight(), WEIGHT) .build()); assertThrowsIllegalArg(() -> InflationInterpolatedRateComputation.meta().builder() .set(InflationInterpolatedRateComputation.meta().startObservation(), PriceIndexObservation.of(GB_HICP, YearMonth.of(2010, 8)))