Runs the test case.
Document doc;
NodeList elementList;
Node employeeNode;
NodeList childList;
Node oldChild;
Node child;
String childName;
int length;
Node removedChild;
String removedName;
doc = (Document) load("staff", true);
elementList = doc.getElementsByTagName("employee");
employeeNode = elementList.item(1);
childList = employeeNode.getChildNodes();
oldChild = childList.item(0);
removedChild = employeeNode.removeChild(oldChild);
removedName = removedChild.getNodeName();
child = childList.item(0);
childName = child.getNodeName();
length = (int) childList.getLength();
if (equals(5, length)) {
assertEquals("removedNameNoWhitespace", "employeeId", removedName);
assertEquals("childNameNoWhitespace", "name", childName);
} else {
assertEquals("removedName", "#text", removedName);
assertEquals("childName", "employeeId", childName);
assertEquals("length", 12, length);
}