private void verifyRecoveryEntriesStats(VM memberVM1, boolean useKrf, boolean expireTombstones) {
    memberVM1.invoke("verifyRecoveryEntriesStats", () -> {
      Cache cache = managementTestRule.getCache();
      Region region = cache.getRegion(REGION_NAME);
      DistributedRegion distributedRegion = (DistributedRegion) region;

      ManagementService service = managementTestRule.getManagementService();
      DiskStoreMXBean diskStoreMXBean = service.getLocalDiskStoreMBean(REGION_NAME);

      int recoveredEntryCreates = expireTombstones ? 1 : 2;
      int recoveredEntryUpdates = useKrf ? 0 : 2;
      int recoveredEntryDestroys = expireTombstones ? 1 : 0;

      assertThat(diskStoreMXBean.getTotalRecoveredEntryCreates()).isEqualTo(recoveredEntryCreates);
      assertThat(diskStoreMXBean.getTotalRecoveredEntryUpdates()).isEqualTo(recoveredEntryUpdates);
      assertThat(diskStoreMXBean.getTotalRecoveredEntryDestroys())
          .isEqualTo(recoveredEntryDestroys);
    });
  }
Checks that after a restart of a server the JMX stats
for oplog recovery are updated accordingly.
geode-core/src/distributedTest/java/org/apache/geode/management/DiskManagementDUnitTest.java