@Override
    public void route(final RouteContext routeContext, final SingleRule singleRule) {
        for (String each : singleRule.getDataSourceNames()) {
            routeContext.getRouteUnits().add(new RouteUnit(new RouteMapper(each, each), Collections.emptyList()));
        }
    }
@Test
    void assertRoute() throws SQLException {
        SingleRule singleRule = new SingleRule(new SingleRuleConfiguration(), DefaultDatabase.LOGIC_NAME, new H2DatabaseType(), createDataSourceMap(), Collections.emptyList());
        RouteContext routeContext = new RouteContext();
        SingleDatabaseBroadcastRouteEngine engine = new SingleDatabaseBroadcastRouteEngine();
        engine.route(routeContext, singleRule);
        List<RouteUnit> routeUnits = new ArrayList<>(routeContext.getRouteUnits());
        assertThat(routeContext.getRouteUnits().size(), is(2));
        assertThat(routeUnits.get(0).getDataSourceMapper().getActualName(), is("ds_0"));
        assertTrue(routeUnits.get(0).getTableMappers().isEmpty());
        assertThat(routeUnits.get(1).getDataSourceMapper().getActualName(), is("ds_1"));
        assertTrue(routeUnits.get(1).getTableMappers().isEmpty());
    }