@Test
  public void testClassNames() {
    Assert.assertEquals(MetastoreConf.DEFAULT_STORAGE_SCHEMA_READER_CLASS,
        DefaultStorageSchemaReader.class.getName());
    Assert.assertEquals(MetastoreConf.SERDE_STORAGE_SCHEMA_READER_CLASS,
        SerDeStorageSchemaReader.class.getName());
    Assert.assertEquals(MetastoreConf.HIVE_ALTER_HANDLE_CLASS,
        HiveAlterHandler.class.getName());
    Assert.assertEquals(MetastoreConf.MATERIALZIATIONS_REBUILD_LOCK_CLEANER_TASK_CLASS,
        MaterializationsRebuildLockCleanerTask.class.getName());
    Assert.assertEquals(MetastoreConf.METASTORE_TASK_THREAD_CLASS,
        MetastoreTaskThread.class.getName());
    Assert.assertEquals(MetastoreConf.METASTORE_RETRYING_HANDLER_CLASS,
        RetryingHMSHandler.class.getName());
    Assert.assertEquals(MetastoreConf.RUNTIME_STATS_CLEANER_TASK_CLASS,
        RuntimeStatsCleanerTask.class.getName());
    Assert.assertEquals(MetastoreConf.EVENT_CLEANER_TASK_CLASS,
        EventCleanerTask.class.getName());
    Assert.assertEquals(MetastoreConf.METASTORE_DELEGATION_MANAGER_CLASS,
        MetastoreDelegationTokenManager.class.getName());
    Assert.assertEquals(MetastoreConf.ACID_HOUSEKEEPER_SERVICE_CLASS,
        AcidHouseKeeperService.class.getName());
    Assert.assertEquals(MetastoreConf.COMPACTION_HOUSEKEEPER_SERVICE_CLASS,
        CompactionHouseKeeperService.class.getName());
    Assert.assertEquals(MetastoreConf.ACID_TXN_CLEANER_SERVICE_CLASS,
        AcidTxnCleanerService.class.getName());
    Assert.assertEquals(MetastoreConf.ACID_OPEN_TXNS_COUNTER_SERVICE_CLASS,
        AcidOpenTxnsCounterService.class.getName());
  }
Test class names hardcoded in MetastoreConf.
MetastoreConf uses several hard-coded class names. If one of these classes is renamed or
moved to a different package we want to be able to catch this. So we compare expected
class name with the actual one.
standalone-metastore/metastore-server/src/test/java/org/apache/hadoop/hive/metastore/conf/TestMetastoreConf.java