tree(template(list(attr("name", "pkg.Test")),
badImp,
imp(list(attr("package", "com.google.bar"))),
imp(list(attr("class", "com.google.Baz")))));
ReparentedTree output = reparent(parseTree);
expectedAlerts.add(new BadNodePlacementError(textNode, badImp));
assertOneRoot(output);
Template root = getTemplate(output.getRoot());
assertEquals(TEMPLATE_NAME, root.getName());
List<Import> imports = root.getImports();
assertEquals(3, imports.size());