Runs the test case.
Document doc;
Node newChild;
NodeList elementList;
Node employeeNode;
NodeList childList;
Node oldChild;
Node appendedChild;
doc = (Document) load("hc_staff", true);
newChild = doc.getDocumentElement();
elementList = doc.getElementsByTagName("p");
employeeNode = elementList.item(1);
{
boolean success = false;
try {
appendedChild = employeeNode.appendChild(newChild);
} catch (DOMException ex) {
success = (ex.code == DOMException.HIERARCHY_REQUEST_ERR);
}
assertTrue("throw_HIERARCHY_REQUEST_ERR", success);
}