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);