CompletionProposalCollector collector= new CompletionProposalCollector(cu);
CompletionProposalCollector collector= createCollector(cu, offset);
	public void testNormalMethodCompletion() 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" +				 "        this.foo//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();		IJavaCompletionProposal proposal= null;		for (int i= 0; i < proposals.length; i++) {			if (proposals[i].getDisplayString().startsWith("foo")) {				proposal= proposals[i];			}		}		assertNotNull("no proposal for foomethod()", proposal);		IDocument doc= new Document(contents);		proposal.apply(doc);		String result= "package test1;\n" +				 "\n" +				 "public class Completion {\n" +				 "    \n" +				 "    void foomethod() {\n" +				 "        this.foomethod()//here\n" +				 "    }\n" +				 "}\n";		assertEqualString(doc.get(), result);	}