public <T extends ShardingSphereRule> Collection<T> findRules(final Class<T> clazz) {
        Collection<T> result = new LinkedList<>();
        for (ShardingSphereRule each : rules) {
            if (clazz.isAssignableFrom(each.getClass())) {
                result.add(clazz.cast(each));
            }
        }
        return result;
    }
@Test
    void assertFindRules() {
        assertThat(ruleMetaData.findRules(ShardingSphereRuleFixture.class).size(), is(1));
    }