Runs the test case.
Document doc;
Node newChild;
NodeList elementList;
Node employeeNode;
NodeList childList;
Node refChild;
Node insertedNode;
doc = (Document) load("staff", true);
newChild = doc.getDocumentElement();
elementList = doc.getElementsByTagName("employee");
employeeNode = elementList.item(1);
childList = employeeNode.getChildNodes();
refChild = childList.item(0);
{
boolean success = false;
try {
insertedNode = employeeNode.insertBefore(newChild, refChild);
} catch (DOMException ex) {
success = (ex.code == DOMException.HIERARCHY_REQUEST_ERR);
}
assertTrue("throw_HIERARCHY_REQUEST_ERR", success);
}