assertNumberOf("proposals", proposals.size(), 1);
assertNumberOfProposals(proposals, 1);
    public void testInvertEquals4() throws Exception {        IPackageFragment pack1= fSourceFolder.createPackageFragment("test1", false, null);        StringBuffer buf= new StringBuffer();        buf.append("package test1;\n");        buf.append("class S {\n");        buf.append("    protected String sup= \"a\";\n");        buf.append("}\n");        buf.append("public class E extends S {\n");        buf.append("    private String a= \"a\";\n");        buf.append("    public void foo() {\n");        buf.append("        sup.equals(this.a);\n");        buf.append("    }\n");        buf.append("}\n");        ICompilationUnit cu= pack1.createCompilationUnit("E.java", buf.toString(), false, null);                String str= "equals";        AssistContext context= getCorrectionContext(cu, buf.toString().indexOf(str), 0);        List proposals= collectAssists(context, FILTER_EQ);                assertNumberOf("proposals", proposals.size(), 1);        assertCorrectLabels(proposals);                CUCorrectionProposal proposal= (CUCorrectionProposal) proposals.get(0);        String preview= getPreviewContent(proposal);        buf= new StringBuffer();        buf.append("package test1;\n");        buf.append("class S {\n");        buf.append("    protected String sup= \"a\";\n");        buf.append("}\n");        buf.append("public class E extends S {\n");        buf.append("    private String a= \"a\";\n");        buf.append("    public void foo() {\n");        buf.append("        this.a.equals(sup);\n");        buf.append("    }\n");        buf.append("}\n");        assertEqualString(preview, buf.toString());                cu= pack1.createCompilationUnit("E.java", buf.toString(), true, null);        context= getCorrectionContext(cu, buf.toString().indexOf(str), 0);        proposals= collectAssists(context, FILTER_EQ);                assertNumberOf("proposals", proposals.size(), 1);        assertCorrectLabels(proposals);                proposal= (CUCorrectionProposal) proposals.get(0);        preview= getPreviewContent(proposal);        buf= new StringBuffer();        buf.append("package test1;\n");        buf.append("class S {\n");        buf.append("    protected String sup= \"a\";\n");        buf.append("}\n");        buf.append("public class E extends S {\n");        buf.append("    private String a= \"a\";\n");        buf.append("    public void foo() {\n");        buf.append("        sup.equals(this.a);\n");        buf.append("    }\n");        buf.append("}\n");        assertEqualString(preview, buf.toString());    }