public AbstractMetaStoreService build() throws Exception {
      switch (miniHMSType) {
      case REMOTE:
        return new RemoteMetaStoreForTests(metaStoreConf);
      case EMBEDDED:
        return new EmbeddedMetaStoreForTests(metaStoreConf);
      case CLUSTER:
        return new ClusterMetaStoreForTests(metaStoreConf);
      default:
        throw new IllegalArgumentException("Unexpected miniHMSType: " + miniHMSType);
      }
    }
Builder for creating a Mini MetaStore object.
standalone-metastore/metastore-server/src/test/java/org/apache/hadoop/hive/metastore/minihms/MiniHMS.java