### Question:
FreeMarkerTemplateParser implements Parser<Object> { public Object parse(Object data) { if (this.tpl == null) return null; return FreeMarkerUtils.format(this.tpl, data); } FreeMarkerTemplateParser(String tpl); Object parse(Object data);  }### Answer:
@Test public void test() throws Exception { FreeMarkerTemplateParser c = new FreeMarkerTemplateParser("${name}"); Map<String, Object> params = new HashMap<String, Object>(); params.put("name", "dragon"); Assert.assertEquals("dragon", c.parse(params)); }