assertOneRoot(output);
Template root = getTemplate(output.getRoot());
assertEquals(TEMPLATE_NAME, root.getName());
assertEquals(0, root.getImports().size());
assertEquals(0, root.getParameters().size());
CollapseExpression collapse = (CollapseExpression) root.getContent();
Concatenation kids = (Concatenation) collapse.getSubexpression();
assertEquals(3, kids.getValues().size());
assertEquals("img",
((OutputElement) kids.getValues().get(0)).getLocalName());
assertEquals("p",
((OutputElement) kids.getValues().get(1)).getLocalName());