public void addConfigurations(List<ConfigurationProperty> configurations) {
        ConfigurationPropertyBuilder builder = new ConfigurationPropertyBuilder();
        for (ConfigurationProperty property : configurations) {
            SCMConfigurations scmConfigurations = SCMMetadataStore.getInstance().getConfigurationMetadata(getPluginId());
            if (isValidPluginConfiguration(property.getConfigKeyName(), scmConfigurations)) {
                configuration.add(builder.create(property.getConfigKeyName(), property.getConfigValue(), property.getEncryptedValue(),
                        scmConfigurationFor(property.getConfigKeyName(), scmConfigurations).getOption(SCMConfiguration.SECURE)));
            } else {
                configuration.add(property);
            }
        }
    }
@Test
    void shouldAddConfigurationPropertiesForAnyPlugin() {
        List<ConfigurationProperty> configurationProperties = List.of(create("key", "value", "encValue"));
        Configuration configuration = new Configuration();
        SCM scm = SCMMother.create("id", "name", "does_not_exist", "1.1", configuration);

        assertThat(configuration.size()).isEqualTo(0);

        scm.addConfigurations(configurationProperties);

        assertThat(configuration.size()).isEqualTo(1);
    }