MustacheTemplateEngine extends AbstractTemplateEngine { @Override public MustacheTemplate compile(String templateName, Reader reader) { Mustache mustache = mustacheFactory.compile(reader, templateName); return new MustacheTemplate(templateName, mustache); } MustacheTemplateEngine(MustacheFactory mustacheFactory); @Override MustacheTemplate compile(String templateName, Reader reader);  }
@Test public void testEngine() { MustacheTemplateEngine engine = new MustacheTemplateEngine(new DefaultMustacheFactory()); MustacheTemplate template = engine.compile("test", new StringReader("??{{key}}!!")); assertEquals( "??value!!", template.process(ImmutableMap.<String, Object>of("key", "value"))); }