@Override
    public TransactionRuleConfiguration swapToObject(final YamlTransactionRuleConfiguration yamlConfig) {
        return new TransactionRuleConfiguration(yamlConfig.getDefaultType(), yamlConfig.getProviderType(), null == yamlConfig.getProps() ? new Properties() : yamlConfig.getProps());
    }
@Test
    void assertSwapToObject() {
        YamlTransactionRuleConfiguration yamlConfig = new YamlTransactionRuleConfiguration();
        yamlConfig.setDefaultType("default");
        yamlConfig.setProviderType("provider");
        yamlConfig.setProps(new Properties());
        TransactionRuleConfiguration actual = new YamlTransactionRuleConfigurationSwapper().swapToObject(yamlConfig);
        assertThat(actual.getDefaultType(), is("default"));
        assertThat(actual.getProviderType(), is("provider"));
        assertThat(actual.getProps(), is(new Properties()));
    }