public static Optional<ShardingRuleConfiguration> findAndConvertShardingRuleConfiguration(final Collection<YamlRuleConfiguration> yamlRuleConfigs) {
        return findYamlShardingRuleConfiguration(yamlRuleConfigs).map(each -> new YamlShardingRuleConfigurationSwapper().swapToObject(each));
    }
@Test
    void assertFindAndConvertShardingRuleConfiguration() {
        Optional<ShardingRuleConfiguration> actual = ShardingRuleConfigurationConverter.findAndConvertShardingRuleConfiguration(yamlRuleConfig);
        assertTrue(actual.isPresent());
        assertThat(actual.get().getTables().size(), is(1));
        assertThat(actual.get().getTables().iterator().next().getLogicTable(), is("LOGIC_TABLE"));
    }