@Test
 public void testOpenProject() {
   IJavaScriptProject p =
       JavaScriptHeadlessUtil.getJavaScriptProjectFromWorkspace(project.projectName);
   System.err.println(p);
   Assert.assertTrue("cannot find project", p != null);
 }
 @Test
 public void testEngine()
     throws IOException, CoreException, IllegalArgumentException, CancelException {
   IJavaScriptProject p =
       JavaScriptHeadlessUtil.getJavaScriptProjectFromWorkspace(project.projectName);
   EclipseJavaScriptAnalysisEngine e = makeAnalysisEngine(p);
   JSCallGraphUtil.setTranslatorFactory(new CAstRhinoTranslatorFactory());
   e.buildAnalysisScope();
   IClassHierarchy cha = e.getClassHierarchy();
   // System.err.println(cha);
   Assert.assertTrue(cha != null);
 }
 @Test
 public void testProjectScope() throws IOException, CoreException {
   IJavaScriptProject p =
       JavaScriptHeadlessUtil.getJavaScriptProjectFromWorkspace(project.projectName);
   JSCallGraphUtil.setTranslatorFactory(new CAstRhinoTranslatorFactory());
   AnalysisScope s =
       makeProjectPath(p)
           .toAnalysisScope(
               new CAstAnalysisScope(
                   JSCallGraphUtil.makeLoaders(), Collections.singleton(JavaScriptLoader.JS)));
   System.err.println(s);
   Assert.assertTrue("cannot make scope", s != null);
   Assert.assertFalse("cannot find files", s.getModules(JavaScriptTypes.jsLoader).isEmpty());
 }