question: public void testGetNamedItemNS2 ( ) throws Throwable { Document doc ; NamedNodeMap attributes ; Node element ; Attr attribute ; NodeList elementList ; String attrName ; doc = ( Document ) load ( "staffNS" , builder ) ; elementList = doc . getElementsByTagNameNS ( "http://www.nist.gov" , "address" ) ; element = elementList . item ( 1 ) ; attributes = element . getAttributes ( ) ; attribute = ( Attr ) attributes . getNamedItemNS ( "http://www.nist.gov" , "domestic" ) ; attrName = attribute . getNodeName ( ) ; assertEquals ( "namednodemapgetnameditemns02" , "emp:domestic" , attrName ) ; }
target:  Runs the test case.