private void deleteLastSnapshotIndex(Pair<String, SnapshotIndex> pathSnapshotIndexPair) {
    deleteCheckpointFromBlobStore(pathSnapshotIndexPair.getRight().getDirIndex());
    try {
      LOG.debug("Deleted last SnapshotIndex: {}", pathSnapshotIndexPair.getLeft());
      Files.move(Paths.get(pathSnapshotIndexPair.getLeft()), Paths.get(pathSnapshotIndexPair.getLeft() + "-DELETED")); // Delete the file
    } catch (IOException e) {
      throw new RuntimeException("Failed to delete file: " + pathSnapshotIndexPair.getLeft(), e);
    }
  }
Verifies the ledger for TestBlobStoreManager.
@param startingSnapshot snapshot file name and files present in snapshot at the beginning of verification (from previous run), if any.
@return Pair file for latest snapshot at time of verification
samza-test/src/test/java/org/apache/samza/storage/kv/BlobStoreStateBackendIntegrationTest.java