@Test
public void testCreateSubset_1D() throws InvalidRangeException {

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