public void testBean() throws Exception {
Context c = new Context();
Bean bean = new Bean();
c.putBean(bean);
Template template = new Template(engine, "{$number}");
Writer writer = new StringWriter();
template.merge(c, writer);
Assert.assertEquals("Bean导入", writer.toString(), "10");
context.set("bean", bean);
Assert.assertEquals("Bean导入",
getResult("{$bean.number}{$bean.number}{$bean.aaa}{$bean.aaa}"),
"1010nullnull");