@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 shouldContinueWithBuildingPluginInfoIfPluginSettingsIsNotProvidedByPlugin() {
        GoPluginDescriptor descriptor = GoPluginDescriptor.builder().id("plugin1").build();
        doThrow(new RuntimeException("foo")).when(extension).getPluginSettingsConfiguration("plugin1");

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

        assertThat(artifactPluginInfo.getDescriptor(), is(descriptor));
        assertThat(artifactPluginInfo.getExtensionName(), is(PluginConstants.ARTIFACT_EXTENSION));
    }