private void takeSnapshot(TableName tableName, String snapshotName, boolean disabled)
    throws IOException {
    SnapshotType type = disabled ? SnapshotType.DISABLED : SnapshotType.FLUSH;
    SnapshotDescription desc =
      new SnapshotDescription(snapshotName, tableName, type, null, -1, manifestVersion, null);
    admin.snapshot(desc);
  }
Tests that snapshot has correct contents by taking snapshot, cloning it, then affirming the
contents of the original and cloned table match
@throws Exception if snapshot does not complete successfully
hbase-server/src/test/java/org/apache/hadoop/hbase/client/TestSnapshotTemporaryDirectory.java