@Test
  public void validValidations() {
    ConfVars.STR_SET_ENTRY.validate("a");
    ConfVars.TIME_TEST_ENTRY.validate("1");
    ConfVars.TIME_VALIDATOR_ENTRY_INCLUSIVE.validate("500ms");
    ConfVars.TIME_VALIDATOR_ENTRY_INCLUSIVE.validate("1500ms");
    ConfVars.TIME_VALIDATOR_ENTRY_INCLUSIVE.validate("1000ms");
    ConfVars.TIME_VALIDATOR_ENTRY_EXCLUSIVE.validate("1000ms");
  }
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