@Test
public void test_segment() {
Map<String, Object> map = new HashMap<String, Object>();
map.put("name", "比尔盖茨");
map.put("age", 50);
Condition c1 = Cnd.wrap("name='${name}' AND age>${age}", map);
assertEquals("name='比尔盖茨' AND age>50", c1.toSql(en));
Worker worker = new Worker();
worker.name = "老板";
worker.age = 30;
Condition c2 = Cnd.wrap("name like'${name}%' AND age>${age}", worker);
assertEquals("name like'老板%' AND age>30", c2.toSql(en));
}