public void testGetNamespaceURI2() throws Throwable {
  Document doc;
  NodeList elementList;
  Element testAddr;
  Attr addrAttr;
  String attrNamespaceURI;
  doc=(Document)load("staffNS",builder);
  elementList=doc.getElementsByTagName("emp:address");
  testAddr=(Element)elementList.item(0);
  assertNotNull("empAddressNotNull",testAddr);
  addrAttr=testAddr.getAttributeNodeNS("http://www.nist.gov","domestic");
  attrNamespaceURI=addrAttr.getNamespaceURI();
  assertEquals("namespaceURI","http://www.nist.gov",attrNamespaceURI);
}

public void testGetNamespaceURI2 ( ) throws Throwable { Document doc ; NodeList elementList ; Element testAddr ; Attr addrAttr ; String attrNamespaceURI ; doc = ( Document ) load ( "staffNS" , builder ) ; elementList = doc . getElementsByTagName ( "emp:address" ) ; testAddr = ( Element ) elementList . item ( 0 ) ; assertNotNull ( "empAddressNotNull" , testAddr ) ; addrAttr = testAddr . getAttributeNodeNS ( "http://www.nist.gov" , "domestic" ) ; attrNamespaceURI = addrAttr . getNamespaceURI ( ) ; assertEquals ( "namespaceURI" , "http://www.nist.gov" , attrNamespaceURI ) ; }
runs the test case .
