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