@Override
    public YamlShardingCacheOptionsConfiguration swapToYamlConfiguration(final ShardingCacheOptionsConfiguration data) {
        YamlShardingCacheOptionsConfiguration result = new YamlShardingCacheOptionsConfiguration();
        result.setSoftValues(data.isSoftValues());
        result.setInitialCapacity(data.getInitialCapacity());
        result.setMaximumSize(data.getMaximumSize());
        return result;
    }
@Test
    void assertSwapToYamlConfiguration() {
        YamlShardingCacheOptionsConfiguration actual = new YamlShardingCacheOptionsConfigurationSwapper().swapToYamlConfiguration(new ShardingCacheOptionsConfiguration(true, 128, 1024));
        assertTrue(actual.isSoftValues());
        assertThat(actual.getInitialCapacity(), is(128));
        assertThat(actual.getMaximumSize(), is(1024));
    }