public boolean hasValidPluginAndStore(ArtifactStore artifactStore) {
        if (artifactStore == null) {
            return false;
        }
        ArtifactPluginInfo pluginInfo = ArtifactMetadataStore.instance().getPluginInfo(artifactStore.getPluginId());
        return pluginInfo != null;
    }
@Test
    public void hasValidPluginAndStore_shouldReturnFalseIfPluginDoesNotExist() {
        ArtifactMetadataStore.instance().remove("cd.go.s3");
        PluggableArtifactConfig pluggableArtifactConfig = new PluggableArtifactConfig("dist", "s3");

        assertFalse(pluggableArtifactConfig.hasValidPluginAndStore(new ArtifactStore("s3", "cd.go.s3")));
    }