@Test
public void testGetDouble_Offset_OutOfBounds() {

    DoubleArraySeries s = new DoubleArraySeries(new double[]{1., 2.1, 3.2, 4}, 1, 2);
    assertThrows(ArrayIndexOutOfBoundsException.class, () -> s.getDouble(2));
}