NewMethodCompletionProposal proposal= (NewMethodCompletionProposal) proposals.get(0); String preview= proposal.getCompilationUnitChange().getPreviewContent();
CUCorrectionProposal proposal= (CUCorrectionProposal) proposals.get(0); String preview1= proposal.getCompilationUnitChange().getPreviewContent();
	public void testSuperConstructor() throws Exception {		IPackageFragment pack1= fSourceFolder.createPackageFragment("test1", false, null);		StringBuffer buf= new StringBuffer();		buf.append("package test1;\n");		buf.append("public class E extends A {\n");		buf.append("    public E(int i) {\n");		buf.append("        super(i);\n");		buf.append("    }\n");		buf.append("}\n");		ICompilationUnit cu1=pack1.createCompilationUnit("E.java", buf.toString(), false, null);		buf= new StringBuffer();		buf.append("package test1;\n");		buf.append("public class A {\n");		buf.append("}\n");		pack1.createCompilationUnit("A.java", buf.toString(), false, null);				CompilationUnit astRoot= AST.parseCompilationUnit(cu1, true);		ArrayList proposals= collectCorrections(cu1, astRoot);		assertNumberOf("proposals", proposals.size(), 1);		assertCorrectLabels(proposals);		NewMethodCompletionProposal proposal= (NewMethodCompletionProposal) proposals.get(0);		String preview= proposal.getCompilationUnitChange().getPreviewContent();		buf= new StringBuffer();		buf.append("package test1;\n");		buf.append("public class A {\n");		buf.append("\n");		buf.append("    public A(int i) {\n");		buf.append("    }\n");				buf.append("}\n");		assertEqualString(preview, buf.toString());	}