@Override
    public YamlShardingAuditStrategyConfiguration swapToYamlConfiguration(final ShardingAuditStrategyConfiguration data) {
        YamlShardingAuditStrategyConfiguration result = new YamlShardingAuditStrategyConfiguration();
        result.setAuditorNames(new LinkedList<>(data.getAuditorNames()));
        result.setAllowHintDisable(data.isAllowHintDisable());
        return result;
    }
@Test
    void assertSwapToYamlConfiguration() {
        ShardingAuditStrategyConfiguration data = new ShardingAuditStrategyConfiguration(Collections.singletonList("audit_algorithm"), false);
        YamlShardingAuditStrategyConfigurationSwapper swapper = new YamlShardingAuditStrategyConfigurationSwapper();
        YamlShardingAuditStrategyConfiguration actual = swapper.swapToYamlConfiguration(data);
        assertThat(actual.getAuditorNames(), is(Collections.singletonList("audit_algorithm")));
        assertFalse(actual.isAllowHintDisable());
    }