public void testGetOwnerElement1() throws Throwable {
  Document doc;
  NodeList addressList;
  Node testNode;
  NamedNodeMap attributes;
  Attr domesticAttr;
  Element elementNode;
  String name;
  doc=(Document)load("staff",builder);
  addressList=doc.getElementsByTagName("address");
  testNode=addressList.item(0);
  attributes=testNode.getAttributes();
  domesticAttr=(Attr)attributes.getNamedItem("domestic");
  elementNode=domesticAttr.getOwnerElement();
  name=elementNode.getNodeName();
  assertEquals("throw_Equals","address",name);
}

public void testGetOwnerElement1 ( ) throws Throwable { Document doc ; NodeList addressList ; Node testNode ; NamedNodeMap attributes ; Attr domesticAttr ; Element elementNode ; String name ; doc = ( Document ) load ( "staff" , builder ) ; addressList = doc . getElementsByTagName ( "address" ) ; testNode = addressList . item ( 0 ) ; attributes = testNode . getAttributes ( ) ; domesticAttr = ( Attr ) attributes . getNamedItem ( "domestic" ) ; elementNode = domesticAttr . getOwnerElement ( ) ; name = elementNode . getNodeName ( ) ; assertEquals ( "throw_Equals" , "address" , name ) ; }
runs the test case .
