}
public void testSqlActionShardingRuleWithSimpleContextObjectType(){
IBatisSqlActionShardingRule r = new IBatisSqlActionShardingRule(DEFAULT_TYPE_PATTEN,
"shard1", "$ROOT.startsWith(\"J\")");
IBatisRoutingFact fact = new IBatisRoutingFact(
"com.alibaba.cobar.client.entity.Tweet.create", "Jack");
assertTrue(r.isDefinedAt(fact));
r = new IBatisSqlActionShardingRule(DEFAULT_TYPE_PATTEN,
"shard1", "startsWith(\"J\")");
assertTrue(r.isDefinedAt(fact));
fact = new IBatisRoutingFact(
"com.alibaba.cobar.client.entity.Tweet.create", "Amanda");
assertFalse(r.isDefinedAt(fact));
}