@Before
  public void setup() throws Exception {
    isMetastoreTokenManagerInited = false;
    System.setProperty(HiveConf.ConfVars.METASTORE_USE_THRIFT_SASL.varname,
        "true");
    System.setProperty(HiveConf.ConfVars.METASTORE_CLUSTER_DELEGATION_TOKEN_STORE_CLS.varname,
        MyTokenStore.class.getName());
    conf = new HiveConf(TestHadoopAuthBridge23.class);
    MetaStoreTestUtils.startMetaStoreWithRetry(new MyHadoopThriftAuthBridge23(), conf);
  }
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