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

    final XYSeries series = new SimpleXYSeries(SimpleXYSeries.ArrayFormat.Y_VALS_ONLY, "test", 1, 2);
    final CatmullRomInterpolator.Params params =
            new CatmullRomInterpolator.Params(2, CatmullRomInterpolator.Type.Centripetal);
    new CatmullRomInterpolator().interpolate(series, params);
}