TemplateNode template =
(TemplateNode) SharedTestUtils.getNode(SharedTestUtils.parseSoyFiles(TEST_FILE_CONTENT));
// Before.
assertEquals(9, template.numChildren());
CssNode cn1 = (CssNode) template.getChild(1);
assertEquals("AAA", cn1.getSelectorText());
CssNode cn7 = (CssNode) template.getChild(7);
assertEquals("$goo", cn7.getComponentNameText());
assertEquals("BBB", cn7.getSelectorText());
// Use a CSS renaming map that only renames 'AAA'.
SoyCssRenamingMap cssRenamingMap =
new SoyCssRenamingMap() {
@Override public String get(String key) {