@Test
  public void testExportWithResetTtl() throws Exception {
    String name = "testExportWithResetTtl";
    TableName tableName = TableName.valueOf(name);
    String snapshotName = "snaptb-" + name;
    Long ttl = 100000L;

    try {
      // create Table
      createTable(tableName);
      SnapshotTestingUtils.loadData(TEST_UTIL, tableName, 50, FAMILY);
      int tableNumFiles = admin.getRegions(tableName).size();
      // take a snapshot with TTL
      Map<String, Object> props = new HashMap<>();
      props.put("TTL", ttl);
      admin.snapshot(snapshotName, tableName, props);
      Optional<Long> ttlOpt =
        admin.listSnapshots().stream().filter(s -> s.getName().equals(snapshotName))
          .map(org.apache.hadoop.hbase.client.SnapshotDescription::getTtl).findAny();
      assertTrue(ttlOpt.isPresent());
      assertEquals(ttl, ttlOpt.get());

      testExportFileSystemState(tableName, snapshotName, snapshotName, tableNumFiles,
        getHdfsDestinationDir(), false, true);
    } catch (Exception e) {
      throw e;
    } finally {
      TEST_UTIL.deleteTable(tableName);
    }
  }
Verify if exported snapshot and copied files matches the original one.
hbase-mapreduce/src/test/java/org/apache/hadoop/hbase/snapshot/TestExportSnapshot.java