@Test
  public void unprintable() {
    Assert.assertTrue(MetastoreConf.isPrintable(ConfVars.STR_TEST_ENTRY.getVarname()));
    Assert.assertFalse(MetastoreConf.isPrintable(ConfVars.PWD.getVarname()));
    Assert.assertFalse(MetastoreConf.isPrintable(ConfVars.PWD.getHiveName()));
  }
Verify that a config can be set with a deprecated key/name.
standalone-metastore/metastore-server/src/test/java/org/apache/hadoop/hive/metastore/conf/TestMetastoreConf.java