@Override
    public Collection<LocalDataQueryResultRow> getRows(final ShowStatusFromReadwriteSplittingRulesStatement sqlStatement, final ContextManager contextManager) {
        Collection<ReadwriteSplittingDataSourceGroupRule> dataSourceGroupRules = getDataSourceGroupRules(sqlStatement);
        Collection<LocalDataQueryResultRow> result = new LinkedList<>();
        dataSourceGroupRules.forEach(each -> result.addAll(buildRows(each)));
        return result;
    }
@Test
    void assertGetRowData() {
        ShowStatusFromReadwriteSplittingRulesExecutor executor = new ShowStatusFromReadwriteSplittingRulesExecutor();
        executor.setRule(mockRule());
        Collection<LocalDataQueryResultRow> actual = executor.getRows(mock(ShowStatusFromReadwriteSplittingRulesStatement.class), mock(ContextManager.class, RETURNS_DEEP_STUBS));
        assertThat(actual.size(), is(2));
        Iterator<LocalDataQueryResultRow> iterator = actual.iterator();
        LocalDataQueryResultRow row = iterator.next();
        assertThat(row.getCell(1), is("read_ds_0"));
        assertThat(row.getCell(2), is("ENABLED"));
        row = iterator.next();
        assertThat(row.getCell(1), is("read_ds_1"));
        assertThat(row.getCell(2), is("DISABLED"));
    }