@Test
  public void testExportWithChecksum() throws Exception {
    // Test different schemes: input scheme is hdfs:// and output scheme is file://
    // The checksum verification will fail
    Path copyLocalDir = getLocalDestinationDir(TEST_UTIL);
    testExportFileSystemState(TEST_UTIL.getConfiguration(), tableName, snapshotName, snapshotName,
      tableNumFiles, TEST_UTIL.getDefaultRootDirPath(), copyLocalDir, false, false,
      getBypassRegionPredicate(), false, true);

    // Test same schemes: input scheme is hdfs:// and output scheme is hdfs://
    // The checksum verification will success
    Path copyHdfsDir = getHdfsDestinationDir();
    testExportFileSystemState(TEST_UTIL.getConfiguration(), tableName, snapshotName, snapshotName,
      tableNumFiles, TEST_UTIL.getDefaultRootDirPath(), copyHdfsDir, false, false,
      getBypassRegionPredicate(), true, true);
  }
Verify if exported snapshot and copied files matches the original one.
hbase-mapreduce/src/test/java/org/apache/hadoop/hbase/snapshot/TestExportSnapshot.java