MockApplication<?> app = application("plugin.template.tag.decorate").init();
// Manufacture a template
// to be removed later when we improve this
// but for now it will be enough
TemplateDescriptor desc = app.getLifeCycle().resolveBean(TemplateService.class).getDescriptor().getTemplate("/plugin/template/tag/decorate/templates/index.gtmpl");
assertNotNull(desc);
TemplateModel<?> foo = new TemplateModel<ASTNode.Template>(
new ASTNode.Template(),
(Path.Absolute)Path.parse("/" + desc.getType().getName().replace('.', '/') + "/foo.gtmpl"),
System.currentTimeMillis(),
0);
//
HashMap<Path.Absolute, TemplateModel<?>> templates = new HashMap<Path.Absolute, TemplateModel<?>>();