question: public void testCreateElementNS1 ( ) throws Throwable { String namespaceURI = "http://www.ecommerce.org/" ; String malformedName = "prefix::local" ; Document doc ; doc = ( Document ) load ( "staffNS" , builder ) ; { boolean success = false ; try { doc . createElementNS ( namespaceURI , malformedName ) ; } catch ( DOMException ex ) { success = ( ex . code == DOMException . NAMESPACE_ERR ) ; } assertTrue ( "throw_NAMESPACE_ERR" , success ) ; } }
target:  Runs the test case.