scriptProject.getProject().build(IncrementalProjectBuilder.FULL_BUILD, null);
ComposerCoreTestPlugin.waitForIndexer();
ComposerCoreTestPlugin.waitForAutoBuild();
IComposerProject project = ComposerPlugin.getDefault().getComposerProject(scriptProject);
IFile composerJson = project.getComposerJson();
assertNotNull(composerJson);
assertTrue(scriptProject.getProject().hasNature(PHPNature.ID));
assertTrue(scriptProject.getProject().hasNature(ComposerNature.NATURE_ID));
assertEquals("Foo\\Bar", project.getNamespace(new Path("src/Foo/Bar")));
assertEquals("Foo\\Bar\\Baz", project.getNamespace(new Path("src/Foo/Bar/Baz")));
assertEquals("Hello\\World", project.getNamespace(new Path("src/HelloWorld")));
assertEquals("", project.getNamespace(new Path("src/Null/")));
assertEquals("Wurst", project.getNamespace(new Path("src/Null/Wurst")));
assertEquals("Blut\\Wurst", project.getNamespace(new Path("src/Null/Blut/Wurst")));
// IResource resource = scriptProject.getProject().getFolder(new Path("src/Foobar/Sub"));
// IPath path = ModelAccess.getInstance().resolve(resource);
// assertNotNull(path);
// assertEquals("Foobar/Sub", path.toString());