@@ -0,0 +1,1678 @@
+package io.shardingsphere.core.metadata.datasource;%0A%0Aimport com.google.common.collect.Lists;%0Aimport io.shardingsphere.core.api.config.ShardingRuleConfiguration;%0Aimport io.shardingsphere.core.api.config.TableRuleConfiguration;%0Aimport io.shardingsphere.core.constant.DatabaseType;%0Aimport io.shardingsphere.core.rule.ShardingRule;%0Aimport org.junit.Before;%0Aimport org.junit.Test;%0A%0Aimport java.util.LinkedHashMap;%0Aimport java.util.Map;%0A%0Aimport static org.junit.Assert.assertEquals;%0A%0Apublic class ShardingDataSourceMetaDataTest %7B%0A    %0A    private ShardingDataSourceMetaData actual;%0A    %0A    @Before%0A    public void setUp() %7B%0A        TableRuleConfiguration tableRuleConfig = new TableRuleConfiguration();%0A        tableRuleConfig.setLogicTable(%22t_order%22);%0A        tableRuleConfig.setActualDataNodes(%22ds_$%7B0..1%7D.t_order_$%7B0..1%7D%22);%0A        ShardingRuleConfiguration shardingRuleConfig = new ShardingRuleConfiguration();%0A        shardingRuleConfig.getTableRuleConfigs().add(tableRuleConfig);%0A        ShardingRule shardingRule = new ShardingRule(shardingRuleConfig, Lists.newArrayList(%22ds_0%22, %22ds_1%22));%0A        Map%3CString, String%3E dataSourceURLs = new LinkedHashMap%3CString, String%3E() %7B%7B put(%22ds_0%22, %22jdbc:mysql://127.0.0.1:3306/db_0%22); put(%22ds_1%22, %22jdbc:mysql://127.0.0.1:3306/db_1%22);%7D%7D;%0A        actual = new ShardingDataSourceMetaData(dataSourceURLs, shardingRule, DatabaseType.MySQL);%0A    %7D%0A    %0A    @Test%0A    public void testGetAllInstanceDataSourceNames() %7B%0A        assertEquals(actual.getAllInstanceDataSourceNames(), Lists.newArrayList(%22ds_0%22));%0A    %7D%0A    %0A    @Test%0A    public void testGetActualSchemaName() %7B%0A        assertEquals(actual.getActualSchemaName(%22ds_0%22), %22db_0%22);%0A    %7D%0A%7D

add ShardingDataSourceMetaDataTest.java