question: public void testSetNamedItemNS1 ( ) throws Throwable { Document doc ; NodeList elementList ; Node anotherElement ; NamedNodeMap anotherMap ; Node arg ; Node testAddress ; NamedNodeMap map ; doc = ( Document ) load ( "staffNS" , builder ) ; elementList = doc . getElementsByTagName ( "address" ) ; anotherElement = elementList . item ( 2 ) ; anotherMap = anotherElement . getAttributes ( ) ; arg = anotherMap . getNamedItemNS ( "http://www.netzero.com" , "domestic" ) ; testAddress = elementList . item ( 0 ) ; map = testAddress . getAttributes ( ) ; { boolean success = false ; try { map . setNamedItemNS ( arg ) ; } catch ( DOMException ex ) { success = ( ex . code == DOMException . INUSE_ATTRIBUTE_ERR ) ; } assertTrue ( "throw_INUSE_ATTRIBUTE_ERR" , success ) ; } }
target:  Runs the test case.