private void waitForInVMToBe(final DiskRegion dr, final int expected) {
    // values are recovered async from disk
    await()
        .untilAsserted(() -> assertEquals(expected, dr.getNumEntriesInVM()));
  }
Make sure recovery correctly sets stats. Currently this test only checks inVM vs onDisk. It
could be enhanced to also check bucketStats. See bug 41849 for the bug that motivated this unit
test.
geode-core/src/integrationTest/java/org/apache/geode/internal/cache/DiskRegRecoveryJUnitTest.java