@Override
    public Map<String, Collection<String>> getDataSourceMapper() {
        Map<String, Collection<String>> result = new HashMap<>(dataSourceGroupRules.size(), 1F);
        for (ReadwriteSplittingDataSourceGroupRule each : dataSourceGroupRules) {
            result.put(each.getName(), each.getReadwriteSplittingGroup().getAllDataSources());
        }
        return result;
    }
@Test
    void assertGetDataSourceMapper() {
        Map<String, Collection<String>> actual = new ReadwriteSplittingDataSourceMapperRuleAttribute(Collections.singleton(createDataSourceGroupRule())).getDataSourceMapper();
        Map<String, Collection<String>> expected = Collections.singletonMap("readwrite", Arrays.asList("write_ds", "read_ds_0", "read_ds_1"));
        assertThat(actual, is(expected));
    }