public TaskConfig toTaskConfig() {
        TaskConfig taskConfig = new TaskConfig();

        for (ConfigurationProperty configurationProperty : configuration) {
            taskConfig.add(new TaskConfigProperty(configurationProperty.getConfigurationKey().getName(), configurationProperty.getValue()));
        }

        return taskConfig;
    }
@Test
    public void shouldBeAbleToGetTaskConfigRepresentation() {
        List<ConfigurationProperty> configurationProperties = List.of(ConfigurationPropertyMother.create("source", false, "src_dir"),
                ConfigurationPropertyMother.create("destination", false, "des_dir"));

        Configuration configuration = new Configuration();
        configuration.addAll(configurationProperties);

        PluginConfiguration pluginConfiguration = new PluginConfiguration("plugin_id", "version");
        PluggableTask pluggableTask = new PluggableTask(pluginConfiguration, configuration);

        TaskConfig taskConfig = pluggableTask.toTaskConfig();

        assertThat(taskConfig.size(), is(2));
        assertThat(taskConfig.get("source").getValue(), is("src_dir"));
        assertThat(taskConfig.get("destination").getValue(), is("des_dir"));
    }