public void testCreateDocumentType1() throws Throwable {
  Document doc;
  DOMImplementation domImpl;
  DocumentType newDocType;
  Document ownerDocument;
  String qualifiedName="test:root";
  String publicId;
  String systemId;
  List<String> publicIds=new ArrayList<String>();
  publicIds.add("1234");
  publicIds.add("test");
  List<String> systemIds=new ArrayList<String>();
  systemIds.add("");
  systemIds.add("test");
  doc=(Document)load("staffNS",builder);
  domImpl=doc.getImplementation();
  for (int indexN1005D=0; indexN1005D < publicIds.size(); indexN1005D++) {
    publicId=(String)publicIds.get(indexN1005D);
    for (int indexN10061=0; indexN10061 < systemIds.size(); indexN10061++) {
      systemId=(String)systemIds.get(indexN10061);
      newDocType=domImpl.createDocumentType(qualifiedName,publicId,systemId);
      assertNotNull("domimplementationcreatedocumenttype01_newDocType",newDocType);
      ownerDocument=newDocType.getOwnerDocument();
      assertNull("domimplementationcreatedocumenttype01_ownerDocument",ownerDocument);
    }
  }
}

public void testCreateDocumentType1 ( ) throws Throwable { Document doc ; DOMImplementation domImpl ; DocumentType newDocType ; Document ownerDocument ; String qualifiedName = "test:root" ; String publicId ; String systemId ; List < String > publicIds = new ArrayList < String > ( ) ; publicIds . add ( "1234" ) ; publicIds . add ( "test" ) ; List < String > systemIds = new ArrayList < String > ( ) ; systemIds . add ( "" ) ; systemIds . add ( "test" ) ; doc = ( Document ) load ( "staffNS" , builder ) ; domImpl = doc . getImplementation ( ) ; for ( int indexN1005D = 0 ; indexN1005D < publicIds . size ( ) ; indexN1005D ++ ) { publicId = ( String ) publicIds . get ( indexN1005D ) ; for ( int indexN10061 = 0 ; indexN10061 < systemIds . size ( ) ; indexN10061 ++ ) { systemId = ( String ) systemIds . get ( indexN10061 ) ; newDocType = domImpl . createDocumentType ( qualifiedName , publicId , systemId ) ; assertNotNull ( "domimplementationcreatedocumenttype01_newDocType" , newDocType ) ; ownerDocument = newDocType . getOwnerDocument ( ) ; assertNull ( "domimplementationcreatedocumenttype01_ownerDocument" , ownerDocument ) ; } } }
runs the test case .
