@Override
    public YamlMaskRuleConfiguration swapToYamlConfiguration(final MaskRuleConfiguration data) {
        YamlMaskRuleConfiguration result = new YamlMaskRuleConfiguration();
        data.getTables().forEach(each -> result.getTables().put(each.getName(), tableSwapper.swapToYamlConfiguration(each)));
        data.getMaskAlgorithms().forEach((key, value) -> result.getMaskAlgorithms().put(key, algorithmSwapper.swapToYamlConfiguration(value)));
        return result;
    }
@Test
    void assertSwapToYamlConfiguration() {
        YamlMaskRuleConfiguration actual = getSwapper().swapToYamlConfiguration(createMaskRuleConfiguration());
        assertThat(actual.getTables().size(), is(1));
        assertThat(actual.getMaskAlgorithms().size(), is(1));
    }