@Override
    public YamlTransactionRuleConfiguration swapToYamlConfiguration(final TransactionRuleConfiguration data) {
        YamlTransactionRuleConfiguration result = new YamlTransactionRuleConfiguration();
        result.setDefaultType(data.getDefaultType());
        result.setProviderType(data.getProviderType());
        result.setProps(data.getProps());
        return result;
    }
@Test
    void assertSwapToYamlConfiguration() {
        YamlTransactionRuleConfiguration actual = new YamlTransactionRuleConfigurationSwapper().swapToYamlConfiguration(new TransactionRuleConfiguration("default", "provider", new Properties()));
        assertThat(actual.getDefaultType(), is("default"));
        assertThat(actual.getProviderType(), is("provider"));
        assertThat(actual.getProps(), is(new Properties()));
    }