@Override
    public YamlShardingCacheConfiguration swapToYamlConfiguration(final ShardingCacheConfiguration data) {
        YamlShardingCacheConfiguration result = new YamlShardingCacheConfiguration();
        result.setAllowedMaxSqlLength(data.getAllowedMaxSqlLength());
        result.setRouteCache(cacheOptionsConfigurationSwapper.swapToYamlConfiguration(data.getRouteCache()));
        return result;
    }
@Test
    void assertSwapToYamlConfiguration() {
        YamlShardingCacheConfiguration actual = new YamlShardingCacheConfigurationSwapper()
                .swapToYamlConfiguration(new ShardingCacheConfiguration(100, new ShardingCacheOptionsConfiguration(true, 128, 1024)));
        assertThat(actual.getAllowedMaxSqlLength(), is(100));
        YamlShardingCacheOptionsConfiguration actualRouteCache = actual.getRouteCache();
        assertTrue(actualRouteCache.isSoftValues());
        assertThat(actualRouteCache.getInitialCapacity(), is(128));
        assertThat(actualRouteCache.getMaximumSize(), is(1024));
    }