@Test
public void testInvalidTrainingMethod() {

    expectedEx.expect(IllegalArgumentException.class);
    expectedEx.expectMessage(String.format("Expected training method to be %s but was %s", HoltWintersTrainingMethod.SIMPLE, HoltWintersTrainingMethod.NONE));
    HoltWintersPointForecasterParams params = HoltWintersAustouristsTestHelper.buildAustouristsParams(HoltWintersSeasonalityType.MULTIPLICATIVE);
    HoltWintersOnlineComponents components = new HoltWintersOnlineComponents(params);
    HoltWintersSimpleTrainingModel subject = new HoltWintersSimpleTrainingModel(params);
    subject.observeAndTrain(0, params, components);
}