@Test
public void testCreateSubset_2D() throws InvalidRangeException {

    final Array historyTimes = InsituData.createHistoryTimeArray_MJD();
    final int historyLength = historyTimes.getIndexPrivate().getShape(0);
    final Range range = InsituReaderHelper.findRange(historyTimes, 2455090.56, 0.5);
    final List<Range> s = InsituReaderHelper.createSubsampling(historyTimes, range, 10);
    final Array array = Array.factory(DataType.INT, new int[]{historyLength, 2});
    final Array subset = Array.factory(array.getElementType(), new int[]{1, 10, 2});
    InsituReader.extractSubset(array, subset, s);
    assertEquals(3, subset.getRank());
    assertEquals(10, subset.getIndexPrivate().getShape(1));
    assertEquals(2, subset.getIndexPrivate().getShape(2));
}