Runs the test case.
Document doc;
DocumentType docTypeNull = null;
Document docImp;
DOMImplementation domImpl;
DocumentType docType;
NamedNodeMap nodeMap;
Entity entity2;
Entity entity6;
Entity entityImp2;
Entity entityImp6;
String nodeName;
String systemId;
String notationName;
String nodeNameImp;
String systemIdImp;
String notationNameImp;
doc = (Document) load("staffNS", true);
domImpl = doc.getImplementation();
docType = doc.getDoctype();
docImp = domImpl.createDocument("http://www.w3.org/DOM/Test", "a:b", docTypeNull);
nodeMap = docType.getEntities();
assertNotNull("entitiesNotNull", nodeMap);
entity2 = (Entity) nodeMap.getNamedItem("ent2");
entity6 = (Entity) nodeMap.getNamedItem("ent6");
entityImp2 = (Entity) docImp.importNode(entity2, false);
entityImp6 = (Entity) docImp.importNode(entity6, true);
nodeName = entity2.getNodeName();
nodeNameImp = entityImp2.getNodeName();
assertEquals("documentimportnode19_Ent2NodeName", nodeName, nodeNameImp);
nodeName = entity6.getNodeName();
nodeNameImp = entityImp6.getNodeName();
assertEquals("documentimportnode19_Ent6NodeName", nodeName, nodeNameImp);
systemId = entity2.getSystemId();
systemIdImp = entityImp2.getSystemId();
assertEquals("documentimportnode19_Ent2SystemId", systemId, systemIdImp);
systemId = entity6.getSystemId();
systemIdImp = entityImp6.getSystemId();
assertEquals("documentimportnode19_Ent6SystemId", systemId, systemIdImp);
notationName = entity2.getNotationName();
notationNameImp = entityImp2.getNotationName();
assertEquals("documentimportnode19_Ent2NotationName", notationName, notationNameImp);
notationName = entity6.getNotationName();
notationNameImp = entityImp6.getNotationName();
assertEquals("documentimportnode19_Ent6NotationName", notationName, notationNameImp);