@Test
public void should_allow_using_json_in_templates() throws GenerationException {

    TemplateEngine template = new TemplateEngine("json-template.html");
    Bar bar = new Bar();
    bar.setVariable("qux");
    assertThat(template.build(singletonMap("variable", bar))).isEqualTo("<div>{\"variable\":\"qux\"}</div>");
}