// create a project with a path to an android .zip
JavaProjectMock javaProject = new JavaProjectMock(
new IClasspathEntry[] {
new ClasspathEntryMock(new Path("Project/src"), //$NON-NLS-1$
IClasspathEntry.CPE_SOURCE),
new ClasspathEntryMock(new Path(OLD_CONTAINER_ID),
IClasspathEntry.CPE_CONTAINER),
},
new Path("Project/bin"));
ProjectHelper.fixProjectClasspathEntries(javaProject);
IClasspathEntry[] fixedEntries = javaProject.getRawClasspath();
assertEquals(3, fixedEntries.length);
assertEquals("Project/src", fixedEntries[0].getPath().toString());
assertEquals(OLD_CONTAINER_ID, fixedEntries[1].getPath().toString());
assertEquals(CONTAINER_ID, fixedEntries[2].getPath().toString());