@Override
    public YamlSQLParserRuleConfiguration swapToYamlConfiguration(final SQLParserRuleConfiguration data) {
        YamlSQLParserRuleConfiguration result = new YamlSQLParserRuleConfiguration();
        result.setParseTreeCache(cacheOptionSwapper.swapToYamlConfiguration(data.getParseTreeCache()));
        result.setSqlStatementCache(cacheOptionSwapper.swapToYamlConfiguration(data.getSqlStatementCache()));
        return result;
    }
@Test
    void assertSwapToYamlConfiguration() {
        SQLParserRuleConfiguration ruleConfig = new SQLParserRuleConfiguration(new CacheOption(2, 5L), new CacheOption(4, 7L));
        YamlSQLParserRuleConfiguration actual = new YamlSQLParserRuleConfigurationSwapper().swapToYamlConfiguration(ruleConfig);
        assertThat(actual.getParseTreeCache().getInitialCapacity(), is(2));
        assertThat(actual.getParseTreeCache().getMaximumSize(), is(5L));
        assertThat(actual.getSqlStatementCache().getInitialCapacity(), is(4));
        assertThat(actual.getSqlStatementCache().getMaximumSize(), is(7L));
    }