public void init(Object hmsHandler, HadoopThriftAuthBridge.Server.ServerMode smode) throws TokenStoreException {
      super.init(hmsHandler, smode);
      TOKEN_STORE = this;
      try {
        Thread.sleep(5000);
      } catch (InterruptedException e) {
        e.printStackTrace();
      }
      isMetastoreTokenManagerInited = true;
    }
set to true when metastore token manager has intitialized token manager
through call to HadoopThriftAuthBridge23.Server.startDelegationTokenSecretManager
itests/hive-unit-hadoop2/src/test/java/org/apache/hadoop/hive/metastore/security/TestHadoopAuthBridge23.java