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

    final XYSeries series = mock(XYSeries.class);
    final CatmullRomInterpolator.Params params =
            new CatmullRomInterpolator.Params(1, CatmullRomInterpolator.Type.Centripetal);
    new CatmullRomInterpolator().interpolate(series, params);
}