String templateBody = "{log}Blah {$foo}.{/log}";
List<StandaloneNode> nodes = parseTemplateBody(templateBody);
assertEquals(1, nodes.size());
LogNode logNode = (LogNode) nodes.get(0);
assertEquals(3, logNode.numChildren());
assertEquals("Blah ", ((RawTextNode) logNode.getChild(0)).getRawText());
assertEquals("$foo", ((PrintNode) logNode.getChild(1)).getExprText());
}