ClassPathDetector detector= new ClassPathDetector(fJProject1.getProject());
ClassPathDetector detector= new ClassPathDetector(fJProject1.getProject(), null);
	public void testTwoSourceFolders() throws Exception {		fJProject1= JavaProjectHelper.createJavaProject("TestProject1", "bin");		// 2 source folders				File junitSrcArchive= JavaTestPlugin.getDefault().getFileInPlugin(JavaProjectHelper.JUNIT_SRC_381);		assertTrue("junit src not found", junitSrcArchive != null && junitSrcArchive.exists());		JavaProjectHelper.addSourceContainerWithImport(fJProject1, "src1", junitSrcArchive, JavaProjectHelper.JUNIT_SRC_ENCODING);				IPackageFragmentRoot root= JavaProjectHelper.addSourceContainer(fJProject1, "src2");		IPackageFragment pack1= root.createPackageFragment("test1", false, null);		StringBuffer buf= new StringBuffer();		buf.append("package test1;\n");		buf.append("public class E {\n");		buf.append("    public void foo() {\n");		buf.append("        getClass();\n");		buf.append("    }\n");		buf.append("}\n");		pack1.createCompilationUnit("E.java", buf.toString(), false, null);				IClasspathEntry[] jreEntries= PreferenceConstants.getDefaultJRELibrary();		for (int i= 0; i < jreEntries.length; i++) {			JavaProjectHelper.addToClasspath(fJProject1, jreEntries[i]);		}		fJProject1.getProject().build(IncrementalProjectBuilder.FULL_BUILD, null);				IClasspathEntry[] projectEntries= fJProject1.getRawClasspath();		IPath projectOutput= fJProject1.getOutputLocation();		clearClasspath();				ClassPathDetector detector= new ClassPathDetector(fJProject1.getProject());		IPath outputLocation= detector.getOutputLocation();		IClasspathEntry[] entries= detector.getClasspath();		assertNotNull("No classpath detected", entries);		assertNotNull("No outputLocation detected", outputLocation);				assertSameClasspath(projectEntries, entries);				assertTrue("Output folder", outputLocation.equals(projectOutput));	}