@Test
public void testIllegalShard() throws SQLException {

    ConditionList conditions = ConditionList.andList();
    conditions.add(exp(SHARD_COL, SX));
    try {
        test.locateDbShards(new ShardingContext("appId", "logicDbName", all(), new Hints(), conditions));
        fail();
    } catch (Exception e) {
        assertEquals(IllegalStateException.class, e.getClass());
    }
}