@Test
  public void testObjectFactoryCheckSum() throws Exception {
    File path = getCodegenQEDataFileInput("AccountService.wsdl");

    String[] testArgs = {
      "-serviceName",
      "AccountService",
      "-genType",
      "ServiceFromWSDLIntf",
      "-wsdl",
      path.getAbsolutePath(),
      "-namespace",
      "http://www.ebayopensource.org/marketplace/service",
      "-dest",
      destDir.getAbsolutePath(),
      "-src",
      destDir.getAbsolutePath(),
      "-slayer",
      "INTERMEDIATE",
      "-jdest",
      destDir.getAbsolutePath() + "/gen-src/client",
      "-bin",
      binDir.getAbsolutePath(),
      "-scv",
      "1.0.0",
      "-pr",
      destDir.getAbsolutePath()
    };

    Set<String> targetNS = WsdlParserUtil.getAllTargetNamespces(path.getAbsolutePath());
    List<String> packageList = new ArrayList<String>();
    Iterator<String> it = targetNS.iterator();
    while (it.hasNext()) {
      packageList.add(WSDLUtil.getPackageFromNamespace(it.next()));
    }
    for (int i = 0; i < 5; i++) {

      performDirectCodeGen(testArgs, binDir);

      File objectFactory = null;
      for (String pkg : packageList) {

        String p = pkg.replace(".", "/");
        objectFactory =
            new File(destDir.getAbsolutePath() + "/gen-src/client/" + p + "/ObjectFactory.java");
        FileUtils.copyFile(
            objectFactory.getAbsolutePath(), getObjectFactoryFile(p).getAbsolutePath());
      }
    }

    for (String pkg : packageList) {
      String p = pkg.replace(".", "/");
      File file = new File(destDir.getAbsolutePath() + "/objFactory/" + p);
      Assert.assertTrue(fileCompare(file));
    }
  }