Runs the test case.
Document doc;
NodeList elementList;
Node employeeNode;
NodeList childList;
Node oldChild;
Node newChild;
Node replacedNode;
int length;
String childName;
doc = (Document) load("staff", true);
elementList = doc.getElementsByTagName("employee");
employeeNode = elementList.item(1);
childList = employeeNode.getChildNodes();
length = (int) childList.getLength();
oldChild = childList.item(1);
newChild = doc.createElement("newChild");
replacedNode = employeeNode.replaceChild(newChild, oldChild);
childName = replacedNode.getNodeName();
if (equals(6, length)) {
assertEquals("nowhitespace", "name", childName);
} else {
assertEquals("whitespace", "employeeId", childName);
}