@Override
    public CacheOption swapToObject(final YamlSQLParserCacheOptionRuleConfiguration yamlConfig) {
        return new CacheOption(yamlConfig.getInitialCapacity(), yamlConfig.getMaximumSize());
    }
@Test
    void assertSwapToObject() {
        YamlSQLParserCacheOptionRuleConfiguration cacheOptionRuleConfig = new YamlSQLParserCacheOptionRuleConfiguration();
        cacheOptionRuleConfig.setInitialCapacity(2);
        cacheOptionRuleConfig.setMaximumSize(5L);
        CacheOption actual = new YamlSQLParserCacheOptionConfigurationSwapper().swapToObject(cacheOptionRuleConfig);
        assertThat(actual.getInitialCapacity(), is(2));
        assertThat(actual.getMaximumSize(), is(5L));
    }