@VisibleForTesting
    void updateConfig(
            Configuration config, ConfigOption<List<String>> configOption, List<String> newValue) {
        final List<String> originalValue =
                config.getOptional(configOption).orElse(Collections.emptyList());

        if (hasLocal(originalValue)) {
            LOG.info(
                    "Updating configuration '{}' after to replace local artifact: '{}'",
                    configOption.key(),
                    newValue);
            config.set(configOption, newValue);
        }
    }
@Test
    void testNoUpdateConfig() {
        List<String> artifactList = Collections.singletonList("s3://my-bucket/my-artifact.jar");
        Configuration config = new Configuration();
        config.set(ArtifactFetchOptions.ARTIFACT_LIST, artifactList);

        artifactUploader.updateConfig(config, ArtifactFetchOptions.ARTIFACT_LIST, artifactList);

        assertThat(config.get(ArtifactFetchOptions.ARTIFACT_LIST)).isEqualTo(artifactList);
    }