@Test
public void testLocateTableShards() throws SQLException {

    Set<String> exp;
    Condition condition;
    for(Object[] testData: data) {
        exp = (Set<String>)testData[0];
        condition = (Condition)testData[1];
        
        ConditionList conditions = ConditionList.andList();
        conditions.add(condition);
        //Test table shard locating
        assertEquals(exp, test.locateTableShards(new TableShardingContext("appId", "logicDbName", null, all(), new Hints(), conditions)));
    }
}