@Test
public void toPrettyJSON() throws IOException {

  Handlebars handlebars = new Handlebars();
  handlebars.registerHelper("@json", Jackson2Helper.INSTANCE);
  Template template = handlebars.compileInline("{{@json this pretty=true}}");
  CharSequence result = template.apply(new Blog("First Post", "..."));
  assertEquals("{\n" +
      "  \"title\" : \"First Post\",\n" +
      "  \"body\" : \"...\",\n" +
      "  \"comments\" : [ ]\n" +
      "}",
      result);
}