folder.create(true, true, null);
folder = folder.getFolder("b");
folder.create(true, true, null);
// Add new resource to the include path:
IncludePathManager manager = IncludePathManager.getInstance();
IncludePath[] includePath = manager.getIncludePaths(project);
int count = includePath.length;
System.arraycopy(includePath, 0,
includePath = new IncludePath[count + 1], 0, count);
includePath[count] = new IncludePath(folder, project);
setIncludePath(manager, includePath);
includePath = manager.getIncludePaths(project);
Assert.assertTrue(includePath.length == 1);
Assert.assertFalse(includePath[0].isBuildpath());
Assert.assertEquals(((IResource) includePath[0].getEntry()), folder);
}