StringWriter sw = new StringWriter();
m.execute(sw, new ComplexObject());
jg.writeEndObject();
jg.flush();
assertEquals(getContents(root, "complex.txt"), sw.toString());
JsonNode jsonNode = jf.createJsonParser(json.toString()).readValueAsTree();
Object o = JsonInterpreterTest.toObject(jsonNode);
sw = new StringWriter();
m = init().compile("complex.html");
m.execute(sw, o);
assertEquals(getContents(root, "complex.txt"), sw.toString());