@Override
    public HadoopConf buildHadoopConfWithReadOnlyConfig(ReadonlyConfig readonlyConfig) {
        Configuration configuration = loadHiveBaseHadoopConfig(readonlyConfig);
        Config config = fillBucket(readonlyConfig, configuration);
        config =
                config.withValue(
                        CosConfigOptions.SECRET_ID.key(),
                        ConfigValueFactory.fromAnyRef(
                                configuration.get(CosConfigOptions.SECRET_ID.key())));
        config =
                config.withValue(
                        CosConfigOptions.SECRET_KEY.key(),
                        ConfigValueFactory.fromAnyRef(
                                configuration.get(CosConfigOptions.SECRET_KEY.key())));
        config =
                config.withValue(
                        CosConfigOptions.REGION.key(),
                        ConfigValueFactory.fromAnyRef(
                                configuration.get(CosConfigOptions.REGION.key())));
        HadoopConf hadoopConf = CosConf.buildWithConfig(config);
        Map<String, String> propsInConfiguration =
                configuration.getPropsWithPrefix(StringUtils.EMPTY);
        hadoopConf.setExtraOptions(propsInConfiguration);
        return hadoopConf;
    }
@Test
    void fillBucketInHadoopConf() {
        COSStorage cosStorage = new COSStorage();
        HadoopConf cosnConf = cosStorage.buildHadoopConfWithReadOnlyConfig(COS);
        assertHadoopConf(cosnConf);
    }