Runs the test case.
Document doc;
NodeList acronymList;
Node testNode;
NamedNodeMap attributes;
Attr titleAttr;
String value;
Text terNode;
Text dayNode;
DocumentFragment docFrag;
Node retval;
Node firstChild;
Node lastChild;
Node refChild;
doc = (Document) load("hc_staff", true);
acronymList = doc.getElementsByTagName("acronym");
testNode = acronymList.item(3);
attributes = testNode.getAttributes();
titleAttr = (Attr) attributes.getNamedItem("title");
terNode = doc.createTextNode("ter");
dayNode = doc.createTextNode("day");
docFrag = doc.createDocumentFragment();
retval = docFrag.appendChild(terNode);
retval = docFrag.appendChild(dayNode);
refChild = titleAttr.getFirstChild();
retval = titleAttr.insertBefore(docFrag, refChild);
value = titleAttr.getValue();
assertEquals("attrValue", "terdayYes", value);
value = titleAttr.getNodeValue();
assertEquals("attrNodeValue", "terdayYes", value);
value = retval.getNodeValue();
assertNull("retvalValue", value);
firstChild = titleAttr.getFirstChild();
value = firstChild.getNodeValue();
assertEquals("firstChildValue", "ter", value);
lastChild = titleAttr.getLastChild();
value = lastChild.getNodeValue();
assertEquals("lastChildValue", "Yes", value);