@Test
  public void testCloneSnapshotWithTTLSuccess() throws Exception {
    String snapshotName = "nonExpiredTTLCloneSnapshotTest";

    // table should exist
    assertTrue(UTIL.getAdmin().tableExists(TABLE_NAME));

    // create snapshot fo given table with specified ttl
    createSnapshotWithTTL(TABLE_NAME, snapshotName, CHORE_INTERVAL_SECS * 2);
    Admin admin = UTIL.getAdmin();

    // restore snapshot
    admin.cloneSnapshot(snapshotName, CLONED_TABLE_NAME);

    // table should be created
    assertTrue(UTIL.getAdmin().tableExists(CLONED_TABLE_NAME));
  }
Setup the config for the cluster
@throws Exception on failure
hbase-server/src/test/java/org/apache/hadoop/hbase/client/TestSnapshotWithTTLFromClient.java