private static ZKWatcher newZK(Configuration conf, String name, Abortable abort)
    throws Exception {
    Configuration copy = HBaseConfiguration.create(conf);
    ZKWatcher zk = new ZKWatcher(copy, name, abort);
    return zk;
  }
Test the synchronization of token authentication master keys through ZKSecretWatcher
hbase-server/src/test/java/org/apache/hadoop/hbase/security/token/TestZKSecretWatcher.java