@Override
  public boolean tryClaim(OffsetByteProgress position) {
    if (!rangeTracker.tryClaim(position.lastOffset().value())) {
      return false;
    }
    lastClaimed = position.lastOffset().value();
    bytes += position.batchBytes();
    return true;
  }
@Test
  public void cannotClaimBackwards() {
    assertTrue(tracker.tryClaim(OffsetByteProgress.of(Offset.of(1_000), MIN_BYTES)));
    assertThrows(
        IllegalArgumentException.class,
        () -> tracker.tryClaim(OffsetByteProgress.of(Offset.of(1_000), MIN_BYTES)));
    assertThrows(
        IllegalArgumentException.class,
        () -> tracker.tryClaim(OffsetByteProgress.of(Offset.of(999), MIN_BYTES)));
  }