@Override
    public ArtifactPluginInfo pluginInfoFor(GoPluginDescriptor descriptor) {
        PluggableInstanceSettings storeConfigSettings = storeConfigMetadata(descriptor.id());
        PluggableInstanceSettings publishArtifactConfigSettings = publishArtifactMetadata(descriptor.id());
        PluggableInstanceSettings fetchArtifactConfigSettings = fetchArtifactMetadata(descriptor.id());
        Image image = image(descriptor.id());
        return new ArtifactPluginInfo(descriptor, storeConfigSettings, publishArtifactConfigSettings, fetchArtifactConfigSettings, image, getCapabilities(descriptor.id()));
    }
@Test
    public void shouldBuildPluginInfoWithPublishArtifactConfigSettings() {
        GoPluginDescriptor descriptor = GoPluginDescriptor.builder().id("plugin1").build();
        List<PluginConfiguration> pluginConfigurations = List.of(
                new PluginConfiguration("FILENAME", new Metadata(true, false))
        );

        when(extension.getPublishArtifactMetadata(descriptor.id())).thenReturn(pluginConfigurations);
        when(extension.getPublishArtifactView(descriptor.id())).thenReturn("artifact_config");

        ArtifactPluginInfo pluginInfo = new ArtifactPluginInfoBuilder(extension).pluginInfoFor(descriptor);

        assertThat(pluginInfo.getArtifactConfigSettings(), is(new PluggableInstanceSettings(pluginConfigurations, new PluginView("artifact_config"))));
    }