Runs the test case.
Document doc;
NodeList genderList;
Node gender;
Node entRef;
ProcessingInstruction piNode;
Node appendedChild;
doc = (Document) load("staff", true);
genderList = doc.getElementsByTagName("gender");
gender = genderList.item(2);
entRef = doc.createEntityReference("ent4");
appendedChild = gender.appendChild(entRef);
entRef = gender.getLastChild();
assertNotNull("entRefNotNull", entRef);
piNode = (ProcessingInstruction) entRef.getLastChild();
assertNotNull("piNodeNotNull", piNode);
{
boolean success = false;
try {
piNode.setData("newData");
} catch (DOMException ex) {
success = (ex.code == DOMException.NO_MODIFICATION_ALLOWED_ERR);
}
assertTrue("throw_NO_MODIFICATION_ALLOWED_ERR", success);
}