assertNumberOf("proposals", proposals.size(), 6);
assertNumberOfProposals(proposals, 6);
	public void testVarInAnonymous() throws Exception {		IPackageFragment pack1= fSourceFolder.createPackageFragment("test1", false, null);		StringBuffer buf= new StringBuffer();						buf= new StringBuffer();		buf.append("package test1;\n");		buf.append("public class E {\n");		buf.append("    public void foo(int fcount) {\n");		buf.append("        new Runnable() {\n");		buf.append("            public void run() {\n");		buf.append("                fCount= 7;\n");		buf.append("            }\n");		buf.append("        };\n");		buf.append("    }\n");		buf.append("}\n");		ICompilationUnit cu1= pack1.createCompilationUnit("E.java", buf.toString(), false, null);		CompilationUnit astRoot= getASTRoot(cu1);		ArrayList proposals= collectCorrections(cu1, astRoot);		assertNumberOf("proposals", proposals.size(), 6);		assertCorrectLabels(proposals);				CUCorrectionProposal proposal= (CUCorrectionProposal) proposals.get(0);		String preview1= getPreviewContent(proposal);		buf= new StringBuffer();		buf.append("package test1;\n");		buf.append("public class E {\n");		buf.append("    public void foo(int fcount) {\n");		buf.append("        new Runnable() {\n");		buf.append("            private int fCount;\n");		buf.append("\n");		buf.append("            public void run() {\n");		buf.append("                fCount= 7;\n");		buf.append("            }\n");		buf.append("        };\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 test1;\n");		buf.append("public class E {\n");		buf.append("    protected int fCount;\n");		buf.append("\n");		buf.append("    public void foo(int fcount) {\n");		buf.append("        new Runnable() {\n");		buf.append("            public void run() {\n");		buf.append("                fCount= 7;\n");		buf.append("            }\n");		buf.append("        };\n");		buf.append("    }\n");		buf.append("}\n");		String expected2= buf.toString();				proposal= (CUCorrectionProposal) proposals.get(2);		String preview3= getPreviewContent(proposal);		buf= new StringBuffer();		buf.append("package test1;\n");		buf.append("public class E {\n");		buf.append("    public void foo(int fcount) {\n");		buf.append("        new Runnable() {\n");		buf.append("            public void run() {\n");		buf.append("                int fCount = 7;\n");		buf.append("            }\n");		buf.append("        };\n");		buf.append("    }\n");		buf.append("}\n");		String expected3= buf.toString();				proposal= (CUCorrectionProposal) proposals.get(3);		String preview4= getPreviewContent(proposal);		buf= new StringBuffer();		buf.append("package test1;\n");		buf.append("public class E {\n");		buf.append("    public void foo(int fcount) {\n");		buf.append("        new Runnable() {\n");		buf.append("            public void run(int fCount) {\n");		buf.append("                fCount= 7;\n");		buf.append("            }\n");		buf.append("        };\n");		buf.append("    }\n");		buf.append("}\n");		String expected4= buf.toString();				proposal= (CUCorrectionProposal) proposals.get(4);		String preview5= getPreviewContent(proposal);		buf= new StringBuffer();		buf.append("package test1;\n");		buf.append("public class E {\n");		buf.append("    public void foo(int fcount) {\n");		buf.append("        new Runnable() {\n");		buf.append("            public void run() {\n");		buf.append("                fcount= 7;\n");		buf.append("            }\n");		buf.append("        };\n");		buf.append("    }\n");		buf.append("}\n");		String expected5= buf.toString();				proposal= (CUCorrectionProposal) proposals.get(5);		String preview6= getPreviewContent(proposal);		buf= new StringBuffer();		buf.append("package test1;\n");		buf.append("public class E {\n");		buf.append("    public void foo(int fcount) {\n");		buf.append("        new Runnable() {\n");		buf.append("            public void run() {\n");		buf.append("            }\n");		buf.append("        };\n");		buf.append("    }\n");		buf.append("}\n");		String expected6= buf.toString();							assertEqualStringsIgnoreOrder(new String[] { preview1, preview2, preview3, preview4, preview5, preview6 }, new String[] { expected1, expected2, expected3, expected4, expected5, expected6 });			}