@Override
    public Module createModule(Context context) {
        final FactoryUtil.ModuleFactoryHelper factoryHelper =
                FactoryUtil.createModuleFactoryHelper(this, context);
        factoryHelper.validate();

        final String hiveVersion =
                factoryHelper
                        .getOptions()
                        .getOptional(HIVE_VERSION)
                        .orElseGet(HiveShimLoader::getHiveVersion);

        return new HiveModule(hiveVersion, context.getConfiguration(), context.getClassLoader());
    }
@Test
    public void test() {
        final HiveModule expected = new HiveModule();

        final Module actualModule =
                FactoryUtil.createModule(
                        HiveModuleFactory.IDENTIFIER,
                        Collections.emptyMap(),
                        new Configuration(),
                        Thread.currentThread().getContextClassLoader());

        checkEquals(expected, (HiveModule) actualModule);
    }