CompilationUnit astRoot= AST.parseCompilationUnit(cu, false);
CompilationUnit astRoot= AST.parseCompilationUnit(cu, false, null, null);
	public void testInsertFieldAfter() throws Exception {		IPackageFragment pack1= fSourceFolder.createPackageFragment("test1", false, null);		StringBuffer buf= new StringBuffer();		buf.append("package test1;\n");		buf.append("public class DD {\n");		buf.append("    private int fCount1;\n");		buf.append("\n");			buf.append("    /*\n");		buf.append("     *\n");		buf.append("     */\n");		buf.append("    private void foo1(){\n");		buf.append("    }\n");		buf.append("}\n");		ICompilationUnit cu= pack1.createCompilationUnit("DD.java", buf.toString(), false, null);		CompilationUnit astRoot= AST.parseCompilationUnit(cu, false);		AST ast= astRoot.getAST();		NewASTRewrite rewrite= new NewASTRewrite(astRoot.getAST());		TypeDeclaration type= findTypeDeclaration(astRoot, "DD");		{			VariableDeclarationFragment frag= ast.newVariableDeclarationFragment();			frag.setName(ast.newSimpleName("fColor"));			FieldDeclaration newField= ast.newFieldDeclaration(frag);			newField.setType(ast.newPrimitiveType(PrimitiveType.CHAR));			newField.setModifiers(Modifier.PRIVATE);								rewrite.getListRewrite(type, ASTNodeConstants.BODY_DECLARATIONS).insertAt(newField, 1, null);		}		String preview= evaluateRewrite(cu, rewrite);		buf= new StringBuffer();		buf.append("package test1;\n");		buf.append("public class DD {\n");		buf.append("    private int fCount1;\n");		buf.append("    private char fColor;\n");		buf.append("\n");		buf.append("    /*\n");		buf.append("     *\n");		buf.append("     */\n");		buf.append("    private void foo1(){\n");		buf.append("    }\n");		buf.append("}\n");		assertEqualString(preview, buf.toString());	}	