@Test
public void testCompareConstructCreation() {

  FileSearch fs = new FileSearch(new String[] {"class"});
  Set<Path> class_files =
      fs.search(Paths.get("./target/test-classes/org/eclipse/steady/java/test/"), 1);
  Set<ConstructId> c_from_class = new HashSet<ConstructId>();
  String filename = null;
  for (Path p : class_files) {
    filename = p.getFileName().toString();
    if (filename.startsWith("TestAnon")) {
      FileAnalyzer fa;
      try {
        fa = FileAnalyzerFactory.buildFileAnalyzer(p.toFile());
        c_from_class.addAll(fa.getConstructs().keySet());
      } catch (FileAnalysisException e) {
        e.printStackTrace();
        assertTrue(false);
      }
    }
  }
  Set<ConstructId> c_from_java = new HashSet<ConstructId>();
  File p = null;
  try {
    p = Paths.get("./src/test/java/org/eclipse/steady/java/test/TestAnon.java").toFile();
    FileAnalyzer fa2 = (JavaFileAnalyzer2) FileAnalyzerFactory.buildFileAnalyzer(p);
    c_from_java.addAll(fa2.getConstructs().keySet());
  } catch (FileAnalysisException e) {
    e.printStackTrace();
  }
  assertTrue(this.compareConstructSets(c_from_class, c_from_java));
}