@PostConstruct
    public void applyPluginMetadata() {
        if (taskPreference() != null) {
            for (ConfigurationProperty configurationProperty : configuration) {
                if (isValidPluginConfiguration(configurationProperty.getConfigKeyName())) {
                    Boolean isSecure = pluginConfigurationFor(configurationProperty.getConfigKeyName()).getOption(Property.SECURE);
                    configurationProperty.handleSecureValueConfiguration(isSecure);
                }
            }
        }
    }
@Test
    public void postConstructShouldDoNothingForAInvalidConfigurationProperty() throws Exception {
        TaskPreference taskPreference = mock(TaskPreference.class);
        ConfigurationProperty configurationProperty = ConfigurationPropertyMother.create("KEY1");
        Configuration configuration = new Configuration(configurationProperty);
        PluggableTaskConfigStore.store().setPreferenceFor("abc.def", taskPreference);

        TaskConfig taskConfig = new TaskConfig();
        when(taskPreference.getConfig()).thenReturn(taskConfig);

        PluggableTask task = new PluggableTask(new PluginConfiguration("abc.def", "1"), configuration);

        assertFalse(configurationProperty.isSecure());

        task.applyPluginMetadata();
        assertFalse(configurationProperty.isSecure());
    }