question: public void testGetAttributeNS2 ( ) throws Throwable { String namespaceURI = "http://www.nist.gov" ; String localName = "district" ; String qualifiedName = "emp:district" ; Document doc ; Attr newAttribute ; NodeList elementList ; Element testAddr ; String attrValue ; doc = ( Document ) load ( "staffNS" , builder ) ; newAttribute = doc . createAttributeNS ( namespaceURI , qualifiedName ) ; elementList = doc . getElementsByTagName ( "emp:address" ) ; testAddr = ( Element ) elementList . item ( 0 ) ; assertNotNull ( "empAddrNotNull" , testAddr ) ; testAddr . setAttributeNodeNS ( newAttribute ) ; elementList = doc . getElementsByTagName ( "emp:address" ) ; testAddr = ( Element ) elementList . item ( 0 ) ; attrValue = testAddr . getAttributeNS ( namespaceURI , localName ) ; assertEquals ( "throw_Equals" , "" , attrValue ) ; }
target:  Runs the test case.