public void testClassCastBug() throws Exception {
  DOMDocument oDocument=new DOMDocument("Root");
  org.w3c.dom.Element oParent=oDocument.createElement("Parent");
  oParent.setAttribute("name","N01");
  oParent.setAttribute("id","ID01");
  oDocument.appendChild(oParent);
}

public void testClassCastBug ( ) throws Exception { DOMDocument oDocument = new DOMDocument ( "Root" ) ; org . w3c . dom . Element oParent = oDocument . createElement ( "Parent" ) ; oParent . setAttribute ( "name" , "N01" ) ; oParent . setAttribute ( "id" , "ID01" ) ; oDocument . appendChild ( oParent ) ; }
tests the bug found by soumanjoy
