Runs the test case.
Document doc;
Node newChild;
NodeList elementList;
Node employeeNode;
Node appendedChild;
doc = (Document) load("staff", true);
newChild = doc.getDocumentElement();
elementList = doc.getElementsByTagName("employee");
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);
}