CompletionProposalCollector collector= new CompletionProposalCollector(cu);
CompletionProposalCollector collector= createCollector(cu, offset);
	public void testNormalAllMethodCompletion() throws Exception {		IPackageFragmentRoot sourceFolder= JavaProjectHelper.addSourceContainer(fJProject1, "src");		IPackageFragment pack1= sourceFolder.createPackageFragment("test1", false, null);		String contents= "package test1;\n" + 				"\n" +				"public class Completion {\n" +				"    \n" +				"    void foomethod() {\n" +				"        Runnable run;\n" +				"        run.//here\n" +				"    }\n" +				"}\n";		ICompilationUnit cu= pack1.createCompilationUnit("Completion.java", contents, false, null);		String str= "//here";		int offset= contents.indexOf(str);		CompletionProposalCollector collector= new CompletionProposalCollector(cu);		collector.setReplacementLength(0);		codeComplete(cu, offset, collector);		IJavaCompletionProposal[] proposals= collector.getJavaCompletionProposals();		assertEquals(12, proposals.length);		CompletionProposalComparator comparator= new CompletionProposalComparator();		comparator.setOrderAlphabetically(true);		Arrays.sort(proposals, comparator);		int i= 0;		assertAppliedProposal(contents, proposals[i++], "clone()");		assertAppliedProposal(contents, proposals[i++], "equals()");		assertAppliedProposal(contents, proposals[i++], "finalize()");		assertAppliedProposal(contents, proposals[i++], "getClass()");		assertAppliedProposal(contents, proposals[i++], "hashCode()");		assertAppliedProposal(contents, proposals[i++], "notify()");		assertAppliedProposal(contents, proposals[i++], "notifyAll()");		assertAppliedProposal(contents, proposals[i++], "run()");		assertAppliedProposal(contents, proposals[i++], "toString()");		assertAppliedProposal(contents, proposals[i++], "wait()");		assertAppliedProposal(contents, proposals[i++], "wait()");		assertAppliedProposal(contents, proposals[i++], "wait()");	}