rewrite.markAsRemoved((ASTNode) decls.get(1));
rewrite.markAsRemoved((ASTNode) decls.get(1), null);
	public void testRemove2() throws Exception {		// remove second				IPackageFragment pack1= fSourceFolder.createPackageFragment("test1", false, null);		StringBuffer buf= new StringBuffer();		buf.append("package test1;\n");		buf.append("public class C {\n");		buf.append("//c1\n");		buf.append("\n");		buf.append("    public void foo1();\n");		buf.append("\n");		buf.append("//c2\n");		buf.append("\n");		buf.append("    public void foo2();\n");		buf.append("\n");		buf.append("//c3\n");		buf.append("\n");		buf.append("    public void foo3();\n");		buf.append("\n");		buf.append("//c4\n");		buf.append("}\n");			ICompilationUnit cu= pack1.createCompilationUnit("C.java", buf.toString(), false, null);			CompilationUnit astRoot= createAST(cu);				NewASTRewrite rewrite= new NewASTRewrite(astRoot.getAST());		TypeDeclaration type= findTypeDeclaration(astRoot, "C");		List decls= type.bodyDeclarations();		rewrite.markAsRemoved((ASTNode) decls.get(1));					String preview= evaluateRewrite(cu, rewrite);				buf= new StringBuffer();		buf.append("package test1;\n");		buf.append("public class C {\n");		buf.append("//c1\n");		buf.append("\n");		buf.append("    public void foo1();\n");		buf.append("\n");		buf.append("//c2\n");		buf.append("\n");		buf.append("    public void foo3();\n");		buf.append("\n");		buf.append("//c4\n");		buf.append("}\n");					assertEqualString(preview, buf.toString());	}