@BeforeClass
  public static void setUpBeforeClass() throws Exception {
    setUpBaseConf(TEST_UTIL.getConfiguration());
    // Setup separate test-data directory for MR cluster and set corresponding configurations.
    // Otherwise, different test classes running MR cluster can step on each other.
    TEST_UTIL.getDataTestDir();

    // set the always on security provider
    UserProvider.setUserProviderForTesting(TEST_UTIL.getConfiguration(),
      HadoopSecurityEnabledUserProviderForTesting.class);

    // setup configuration
    SecureTestUtil.enableSecurity(TEST_UTIL.getConfiguration());

    TEST_UTIL.startMiniCluster(3);
    TEST_UTIL.startMiniMapReduceCluster();

    // Wait for the ACL table to become available
    TEST_UTIL.waitTableEnabled(PermissionStorage.ACL_TABLE_NAME);
  }
Reruns TestExportSnapshot using ExportSnapshot in secure mode.
hbase-mapreduce/src/test/java/org/apache/hadoop/hbase/snapshot/TestSecureExportSnapshot.java