@Test
public void testIterable() throws IOException {
DefaultMustacheFactory dmf = new DefaultMustacheFactory();
Mustache test = dmf.compile(new StringReader("{{#values}}\ntest: {{value}}\n{{/values}}"), "test");
Node invert = test.invert("test: sam\ntest: fred\n");
Node node = new Node();
Node sam = new Node();
sam.put("value", value("sam"));
Node fred = new Node();
fred.put("value", value("fred"));
node.put("values", list(asList(sam, fred)));
assertEquals(node, invert);
StringWriter sw = new StringWriter();
test.execute(sw, invert).close();
System.out.println(sw);