@Override
    public ShardingCacheOptionsConfiguration swapToObject(final YamlShardingCacheOptionsConfiguration yamlConfig) {
        return new ShardingCacheOptionsConfiguration(yamlConfig.isSoftValues(), yamlConfig.getInitialCapacity(), yamlConfig.getMaximumSize());
    }
@Test
    void assertSwapToObject() {
        YamlShardingCacheOptionsConfiguration input = new YamlShardingCacheOptionsConfiguration();
        input.setSoftValues(true);
        input.setInitialCapacity(256);
        input.setMaximumSize(4096);
        ShardingCacheOptionsConfiguration actual = new YamlShardingCacheOptionsConfigurationSwapper().swapToObject(input);
        assertTrue(actual.isSoftValues());
        assertThat(actual.getInitialCapacity(), is(256));
        assertThat(actual.getMaximumSize(), is(4096));
    }