Runs the test case.
Document doc;
NodeList elementList;
Node employeeNode;
Node clonedNode;
NodeList clonedList;
Node clonedChild;
String clonedChildName;
NodeList origList;
Node origChild;
String origChildName;
java.util.List result = new java.util.ArrayList();
java.util.List expected = new java.util.ArrayList();
doc = (Document) load("hc_staff", true);
elementList = doc.getElementsByTagName("p");
employeeNode = elementList.item(1);
origList = employeeNode.getChildNodes();
for (int indexN10065 = 0; indexN10065 < origList.getLength(); indexN10065++) {
origChild = (Node) origList.item(indexN10065);
origChildName = origChild.getNodeName();
expected.add(origChildName);
}
clonedNode = employeeNode.cloneNode(true);
clonedList = clonedNode.getChildNodes();
for (int indexN1007B = 0; indexN1007B < clonedList.getLength(); indexN1007B++) {
clonedChild = (Node) clonedList.item(indexN1007B);
clonedChildName = clonedChild.getNodeName();
result.add(clonedChildName);
}
assertEquals("clone", expected, result);