@Override
    public ShardingCacheConfiguration swapToObject(final YamlShardingCacheConfiguration yamlConfig) {
        return new ShardingCacheConfiguration(yamlConfig.getAllowedMaxSqlLength(), cacheOptionsConfigurationSwapper.swapToObject(yamlConfig.getRouteCache()));
    }
@Test
    void assertSwapToObject() {
        YamlShardingCacheConfiguration input = new YamlShardingCacheConfiguration();
        input.setAllowedMaxSqlLength(200);
        YamlShardingCacheOptionsConfiguration yamlConfig = new YamlShardingCacheOptionsConfiguration();
        yamlConfig.setSoftValues(true);
        yamlConfig.setInitialCapacity(256);
        yamlConfig.setMaximumSize(4096);
        input.setRouteCache(yamlConfig);
        ShardingCacheConfiguration actual = new YamlShardingCacheConfigurationSwapper().swapToObject(input);
        assertThat(actual.getAllowedMaxSqlLength(), is(200));
        ShardingCacheOptionsConfiguration actualOptions = actual.getRouteCache();
        assertTrue(actualOptions.isSoftValues());
        assertThat(actualOptions.getInitialCapacity(), is(256));
        assertThat(actualOptions.getMaximumSize(), is(4096));
    }