//Compare the generated Java type against the one generated by wscompile
String fname = "President.java";
File file2 = createResourceFile(genPath + "/occurrence/org/jboss/ws/types/" + fname);
File file1 = getResourceFile("tools/xsd-java-checker/wscompile/complextypes/occurrence/" + fname);
JBossSourceComparator sc = new JBossSourceComparator(file1, file2);
assertTrue("Source Files Match:", sc.validate());
sc.validateImports();
}