@Test(expected = IllegalArgumentException.class)
public void invalidInitialPeriodOfValues() {

    new SmaPointForecasterParams()
        .setLookBackPeriod(2)
        .setInitialPeriodOfValues(Arrays.asList(1.0, 2.0, 3.0))
        .validate();
}