@Test
  public void recordVersionLessThanTwiceBitSetWidthShouldSlideBitSet() {
    RegionVersionHolder h = createHolder(true);
    LongStream.range(1, 10).forEach(h::recordVersion);
    h.recordVersion(15);
    int lessThanBitSetVersion = BIT_SET_WIDTH - 10;
    h.recordVersion(lessThanBitSetVersion);
    int moreThanBitSetVersion = BIT_SET_WIDTH + 10;
    h.recordVersion(moreThanBitSetVersion);

    // The bit set will only slide to start from 15, because that is the last set bit
    // less than 3/4 the size of the bit set
    assertEquals(15, h.getBitSetVersionForTesting());
    assertEquals(bitSet(0, lessThanBitSetVersion - 15, moreThanBitSetVersion - 15),
        h.getBitSetForTesting());

    assertContains(h, 1, 2, 3, 4, 5, 6, 7, 8, 9, 15, lessThanBitSetVersion, moreThanBitSetVersion);
    assertHasExceptions(h,
        RVVException.createException(lessThanBitSetVersion, moreThanBitSetVersion),
        RVVException.createException(15, lessThanBitSetVersion),
        RVVException.createException(9, 15));
  }
Tests of how the RegionVersionHolder maintains it's bitset under updates
geode-core/src/test/java/org/apache/geode/internal/cache/versions/RegionVersionHolderBitSetJUnitTest.java