CompilationUnit astRoot= AST.parseCompilationUnit(cu, false);
CompilationUnit astRoot= AST.parseCompilationUnit(cu, false, null, null);
	public void testInsert3() throws Exception {		IPackageFragment pack1= fSourceFolder.createPackageFragment("test1", false, null);	  // add after comment 		StringBuffer buf= new StringBuffer();		buf.append("package test1;\n");		buf.append("public class E {\n");		buf.append("    public Object goo() {\n");		buf.append("        i++; //comment\n");		buf.append("        i++; //comment\n");							buf.append("        return new Integer(3);\n");		buf.append("    }\n");		buf.append("}\n");			ICompilationUnit cu= pack1.createCompilationUnit("E.java", buf.toString(), false, null);				CompilationUnit astRoot= AST.parseCompilationUnit(cu, false);		NewASTRewrite rewrite= new NewASTRewrite(astRoot.getAST());		TypeDeclaration type= findTypeDeclaration(astRoot, "E");		AST ast= astRoot.getAST();			MethodDeclaration methodDecl= findMethodDeclaration(type, "goo");		Block block= methodDecl.getBody();		assertTrue("No block" , block != null);				MethodInvocation invocation1= ast.newMethodInvocation();		invocation1.setName(ast.newSimpleName("foo"));		ExpressionStatement statement1= ast.newExpressionStatement(invocation1);				MethodInvocation invocation2= ast.newMethodInvocation();		invocation2.setName(ast.newSimpleName("foo"));		ExpressionStatement statement2= ast.newExpressionStatement(invocation2);				List statements= methodDecl.getBody().statements();		ASTNode second= (ASTNode) statements.get(1);				ListRewriter listRewrite= rewrite.getListRewrite(methodDecl.getBody(), ASTNodeConstants.STATEMENTS);		listRewrite.remove(second, null); 		listRewrite.insertBefore(statement1, second, null);		listRewrite.insertAfter(statement2, second, null);				String preview= evaluateRewrite(cu, rewrite);				buf= new StringBuffer();		buf.append("package test1;\n");		buf.append("public class E {\n");		buf.append("    public Object goo() {\n");		buf.append("        i++; //comment\n");		buf.append("        foo();\n");		buf.append("        foo();\n");						buf.append("        return new Integer(3);\n");		buf.append("    }\n");		buf.append("}\n");					assertEqualString(preview, buf.toString());				}		