@Override
    public SQLParserRuleConfiguration swapToObject(final YamlSQLParserRuleConfiguration yamlConfig) {
        CacheOption parseTreeCacheOption = null == yamlConfig.getParseTreeCache()
                ? DefaultSQLParserRuleConfigurationBuilder.PARSE_TREE_CACHE_OPTION
                : cacheOptionSwapper.swapToObject(yamlConfig.getParseTreeCache());
        CacheOption sqlStatementCacheOption = null == yamlConfig.getSqlStatementCache()
                ? DefaultSQLParserRuleConfigurationBuilder.SQL_STATEMENT_CACHE_OPTION
                : cacheOptionSwapper.swapToObject(yamlConfig.getSqlStatementCache());
        return new SQLParserRuleConfiguration(parseTreeCacheOption, sqlStatementCacheOption);
    }
@Test
    void assertSwapToObjectWithDefaultConfig() {
        YamlSQLParserRuleConfiguration yamlConfig = new YamlSQLParserRuleConfiguration();
        SQLParserRuleConfiguration actual = new YamlSQLParserRuleConfigurationSwapper().swapToObject(yamlConfig);
        assertThat(actual.getParseTreeCache().getInitialCapacity(), is(128));
        assertThat(actual.getParseTreeCache().getMaximumSize(), is(1024L));
        assertThat(actual.getSqlStatementCache().getInitialCapacity(), is(2000));
        assertThat(actual.getSqlStatementCache().getMaximumSize(), is(65535L));
    }