assertEquals(3, nCreateCU);
	public void testAddToClasspathContainer() throws Exception {		IPackageFragment pack1= fSourceFolder.createPackageFragment("test1", false, null);		StringBuffer buf= new StringBuffer();		buf.append("package test1;\n");		buf.append("import mylib.Foo;\n");		buf.append("public class E {\n");		buf.append("}\n");		ICompilationUnit cu= pack1.createCompilationUnit("E.java", buf.toString(), false, null);		IClasspathEntry[] prevClasspath= cu.getJavaProject().getRawClasspath();				IJavaProject otherProject= JavaProjectHelper.createJavaProject("other", "bin");		try {			File lib= JavaTestPlugin.getDefault().getFileInPlugin(JavaProjectHelper.MYLIB);			assertTrue("lib does not exist",  lib != null && lib.exists());			IPath path= Path.fromOSString(lib.getPath());			final IClasspathEntry[] entries= { JavaCore.newLibraryEntry(path, null, null) };			final IPath containerPath= new Path(JavaCore.USER_LIBRARY_CONTAINER_ID).append("MyUserLibrary");						IClasspathContainer newContainer= new IClasspathContainer() {				public IClasspathEntry[] getClasspathEntries() {					return entries;				}				public String getDescription() {					return "MyUserLibrary";				}				public int getKind() {					return IClasspathContainer.K_APPLICATION;				}				public IPath getPath() {					return containerPath;				}			};			ClasspathContainerInitializer initializer= JavaCore.getClasspathContainerInitializer(JavaCore.USER_LIBRARY_CONTAINER_ID);			initializer.requestClasspathContainerUpdate(containerPath, otherProject, newContainer);						IClasspathEntry entry= JavaCore.newContainerEntry(containerPath);			JavaProjectHelper.addToClasspath(otherProject, entry);						CompilationUnit astRoot= getASTRoot(cu);			ArrayList proposals= collectCorrections(cu, astRoot);			assertNumberOfProposals(proposals, 3);			assertCorrectLabels(proposals);						for (int i= 0; i < proposals.size(); i++) {				ChangeCorrectionProposal curr=  (ChangeCorrectionProposal) proposals.get(i);				if (curr.getChange() instanceof AddToClasspathChange) {					curr.apply(null);					IClasspathEntry[] newClasspath= cu.getJavaProject().getRawClasspath();					assertEquals(prevClasspath.length + 1, newClasspath.length);					assertEquals(containerPath, newClasspath[prevClasspath.length].getPath());				}			}		} finally {			JavaProjectHelper.delete(otherProject);		}	}