public static Optional<YamlShardingRuleConfiguration> findYamlShardingRuleConfiguration(final Collection<YamlRuleConfiguration> yamlRuleConfigs) {
        return yamlRuleConfigs.stream().filter(YamlShardingRuleConfiguration.class::isInstance).findFirst().map(YamlShardingRuleConfiguration.class::cast);
    }
@Test
    void assertFindYamlShardingRuleConfiguration() {
        Optional<YamlShardingRuleConfiguration> actual = ShardingRuleConfigurationConverter.findYamlShardingRuleConfiguration(yamlRuleConfig);
        assertTrue(actual.isPresent());
        assertThat(actual.get().getTables().size(), is(1));
        assertTrue(actual.get().getTables().containsKey("LOGIC_TABLE"));
    }