Runs the test case.
Document doc;
NodeList elementList;
Element entRefAddr;
Node entRefNode;
String entRefName;
int nodeType;
doc = (Document) load("staff", false);
elementList = doc.getElementsByTagName("address");
entRefAddr = (Element) elementList.item(1);
entRefNode = entRefAddr.getFirstChild();
nodeType = (int) entRefNode.getNodeType();
if (!equals(5, nodeType)) {
entRefNode = doc.createEntityReference("ent2");
assertNotNull("createdEntRefNotNull", entRefNode);
}
entRefName = entRefNode.getNodeName();
assertEquals("nodeEntityReferenceNodeNameAssert1", "ent2", entRefName);