Runs the test case.
Document doc;
EntityReference entRef;
Element entElement;
Node attrNode;
Text textNode;
Node removedNode;
doc = (Document) load("staff", true);
entRef = doc.createEntityReference("ent4");
assertNotNull("createdEntRefNotNull", entRef);
entElement = (Element) entRef.getFirstChild();
assertNotNull("entElementNotNull", entElement);
attrNode = entElement.getAttributeNode("domestic");
textNode = (Text) attrNode.getFirstChild();
assertNotNull("attrChildNotNull", textNode);
{
boolean success = false;
try {
removedNode = attrNode.removeChild(textNode);
} catch (DOMException ex) {
success = (ex.code == DOMException.NO_MODIFICATION_ALLOWED_ERR);
}
assertTrue("setValue_throws_NO_MODIFICATION_ERR", success);
}