@AfterClass
  public static void cleanup() throws IOException {
    UTIL1.shutdownMiniCluster();
    UTIL2.shutdownMiniCluster();
  }
Sets the security firstly for getting the correct default realm.
hbase-mapreduce/src/test/java/org/apache/hadoop/hbase/replication/TestVerifyReplicationSecureClusterCredentials.java