assertNumberOf("proposals", proposals.size(), 2);
assertNumberOfProposals(proposals, 2);
	public void testSimilarVariableNames2() throws Exception {		StringBuffer buf= new StringBuffer();				IPackageFragment pack1= fSourceFolder.createPackageFragment("test3", false, null);		buf= new StringBuffer();		buf.append("package test3;\n");		buf.append("public class E {\n");		buf.append("    private static final short CON1= 1;\n");		buf.append("    private static final float CON2= 1.0f;\n");		buf.append("    private static short var1= 1;\n");		buf.append("    private static float var2= 1.0f;\n");		buf.append("    private String bla;\n");		buf.append("    private String cout;\n");		buf.append("    public void foo(int x) {\n");		buf.append("        count= x;\n");				buf.append("    }\n");						buf.append("}\n");		ICompilationUnit cu= pack1.createCompilationUnit("E.java", buf.toString(), false, null);				CompilationUnit astRoot= getASTRoot(cu);		ArrayList proposals= collectCorrections(cu, astRoot);		for (int i= proposals.size() - 1; i >= 0; i--) {			Object curr= proposals.get(i);			if (!(curr instanceof RenameNodeCompletionProposal)) {				proposals.remove(i);			}		}				assertNumberOf("proposals", proposals.size(), 2);		assertCorrectLabels(proposals);		CUCorrectionProposal proposal= (CUCorrectionProposal) proposals.get(0);		String preview1= getPreviewContent(proposal);				buf= new StringBuffer();		buf.append("package test3;\n");		buf.append("public class E {\n");		buf.append("    private static final short CON1= 1;\n");		buf.append("    private static final float CON2= 1.0f;\n");		buf.append("    private static short var1= 1;\n");		buf.append("    private static float var2= 1.0f;\n");		buf.append("    private String bla;\n");		buf.append("    private String cout;\n");		buf.append("    public void foo(int x) {\n");		buf.append("        var2= x;\n");				buf.append("    }\n");						buf.append("}\n");		String expected1= buf.toString();		proposal= (CUCorrectionProposal) proposals.get(1);		String preview2= getPreviewContent(proposal);				buf= new StringBuffer();		buf.append("package test3;\n");		buf.append("public class E {\n");		buf.append("    private static final short CON1= 1;\n");		buf.append("    private static final float CON2= 1.0f;\n");		buf.append("    private static short var1= 1;\n");		buf.append("    private static float var2= 1.0f;\n");		buf.append("    private String bla;\n");		buf.append("    private String cout;\n");		buf.append("    public void foo(int x) {\n");		buf.append("        cout= x;\n");				buf.append("    }\n");						buf.append("}\n");		String expected2= buf.toString();		assertEqualStringsIgnoreOrder(new String[] { preview1, preview2 }, new String[] { expected1, expected2 });			}