@Test
public void testVanilla() {

  try {
    final JavaFileAnalyzer2 jfa =
        (JavaFileAnalyzer2)
            FileAnalyzerFactory.buildFileAnalyzer(
                new File("./src/test/java/org/eclipse/steady/java/test/Vanilla.java"));
    final Map<ConstructId, Construct> constructs = jfa.getConstructs();
    // The parsing should produce the following 5 elements:
    final JavaPackageId p = new JavaPackageId("org.eclipse.steady.java.test");
    final JavaClassId cl = JavaId.parseClassQName("org.eclipse.steady.java.test.Vanilla");
    final JavaConstructorId cons =
        JavaId.parseConstructorQName("org.eclipse.steady.java.test.Vanilla(String)");
    final JavaMethodId meth =
        JavaId.parseMethodQName("org.eclipse.steady.java.test.Vanilla.foo(String)");
    final JavaMethodId meth2 =
        JavaId.parseMethodQName("org.eclipse.steady.java.test.Vanilla.vuln(String)");
    // Assertions
    assertEquals(5, constructs.size());
    assertTrue(constructs.containsKey(p));
    assertTrue(constructs.containsKey(cl));
    assertTrue(constructs.containsKey(cons));
    assertTrue(constructs.containsKey(meth));
    assertTrue(constructs.containsKey(meth2));
  } catch (FileAnalysisException e) {
    e.printStackTrace();
    assertTrue(false);
  }
}