@Test
public void testExcessTrainingFails() {

    expectedEx.expect(IllegalArgumentException.class);
    expectedEx.expectMessage(String.format(
            "Training invoked %d times which is greater than the training window of frequency * 2 (%d * 2 = %d) observations.",
            (HoltWintersAustouristsTestHelper.AUSTOURISTS_FREQUENCY * 2) + 1, HoltWintersAustouristsTestHelper.AUSTOURISTS_FREQUENCY, HoltWintersAustouristsTestHelper.AUSTOURISTS_FREQUENCY * 2));
    HoltWintersPointForecasterParams params = HoltWintersAustouristsTestHelper.buildAustouristsParams(HoltWintersSeasonalityType.MULTIPLICATIVE)
            .setInitTrainingMethod(HoltWintersTrainingMethod.SIMPLE);
    HoltWintersOnlineComponents components = new HoltWintersOnlineComponents(params);
    HoltWintersSimpleTrainingModel subject = new HoltWintersSimpleTrainingModel(params);
    for (int i = 0; i < 9; i++) {
        subject.observeAndTrain(i, params, components);
    }
}