@Override
  public boolean tryReturnRecordAt(boolean isAtSplitPoint, Long recordStart) {
    return tryReturnRecordAt(isAtSplitPoint, recordStart.longValue());
  }
@Test
  public void testTryReturnRecordContinuesUntilSplitPoint() throws Exception {
    OffsetRangeTracker tracker = new OffsetRangeTracker(9, 18);
    // Return records with gaps of 2; every 3rd record is a split point.
    assertTrue(tracker.tryReturnRecordAt(true, 10));
    assertTrue(tracker.tryReturnRecordAt(false, 12));
    assertTrue(tracker.tryReturnRecordAt(false, 14));
    assertTrue(tracker.tryReturnRecordAt(true, 16));
    // Out of range, but not a split point...
    assertTrue(tracker.tryReturnRecordAt(false, 18));
    assertTrue(tracker.tryReturnRecordAt(false, 20));
    // Out of range AND a split point.
    assertFalse(tracker.tryReturnRecordAt(true, 22));
  }