@Test
public void testFindRange_ForReferenceTimeAtEndOfHistory_SECS_1978() {

    final Array historyTimes = InsituData.createHistoryTimeArray_SECS_1978();
    final double referenceTime = 791596007;
    final Range range = InsituReaderHelper.findRange(historyTimes, referenceTime, HALF_DAY_SECS);
    assertTrue(historyTimes.getDouble(range.first() - 1) < referenceTime - HALF_DAY_SECS);
    assertTrue(historyTimes.getDouble(range.first()) >= referenceTime - HALF_DAY_SECS);
    assertEquals(referenceTime, historyTimes.getDouble(range.last()), 1e-8);
}