@Override
    public SingleRuleConfiguration swapToObject(final YamlSingleRuleConfiguration yamlConfig) {
        SingleRuleConfiguration result = new SingleRuleConfiguration();
        if (null != yamlConfig.getTables()) {
            result.getTables().addAll(yamlConfig.getTables());
        }
        result.setDefaultDataSource(yamlConfig.getDefaultDataSource());
        return result;
    }
@Test
    void assertSwapToObject() {
        YamlSingleRuleConfiguration yamlConfig = new YamlSingleRuleConfiguration();
        yamlConfig.setDefaultDataSource("ds_0");
        SingleRuleConfiguration ruleConfig = new YamlSingleRuleConfigurationSwapper().swapToObject(yamlConfig);
        assertTrue(ruleConfig.getDefaultDataSource().isPresent());
        assertThat(ruleConfig.getDefaultDataSource().get(), is("ds_0"));
    }