(new RenameCssVisitor(cssRenamingMap)).exec(template);
(new CombineConsecutiveRawTextNodesVisitor()).exec(template);
// After.
assertEquals(5, template.numChildren());
RawTextNode rtn0 = (RawTextNode) template.getChild(0);
assertEquals("<div class=\"XXX ", rtn0.getRawText());
PrintNode pn1 = (PrintNode) template.getChild(1);
assertEquals("$goo", pn1.getExprText());
RawTextNode rtn2 = (RawTextNode) template.getChild(2);
assertEquals("-XXX BBB ", rtn2.getRawText());
PrintNode pn3 = (PrintNode) template.getChild(3);
assertEquals("$goo", pn3.getExprText());
RawTextNode rtn4 = (RawTextNode) template.getChild(4);
assertEquals("-BBB\">", rtn4.getRawText());
}