rewrite.markAsInsert(methodDecl, MethodDeclaration.JAVADOC_PROPERTY, javadoc, null);
rewrite.set(methodDecl, MethodDeclaration.JAVADOC_PROPERTY, javadoc, null);
	public void testAddJavadoc() throws Exception {		IPackageFragment pack1= fSourceFolder.createPackageFragment("test1", false, null);		StringBuffer buf= new StringBuffer();		buf.append("package test1;\n");		buf.append("public class E {\n");		buf.append("\n");		buf.append("    public void gee(String name) {\n");		buf.append("    }\n");		buf.append("}\n");		ICompilationUnit cu= pack1.createCompilationUnit("E.java", buf.toString(), false, null);					CompilationUnit astRoot= createAST(cu);		AST ast= astRoot.getAST();				NewASTRewrite rewrite= new NewASTRewrite(astRoot.getAST());			{  // insert method at first position			TypeDeclaration type= findTypeDeclaration(astRoot, "E");			MethodDeclaration methodDecl= findMethodDeclaration(type, "gee");						Javadoc javadoc= ast.newJavadoc();			TagElement element= ast.newTagElement();			element.setTagName("@since");						TextElement textElement= ast.newTextElement();			textElement.setText("1.1");			element.fragments().add(textElement);			javadoc.tags().add(element);						rewrite.markAsInsert(methodDecl, MethodDeclaration.JAVADOC_PROPERTY, javadoc, null);		}		String preview= evaluateRewrite(cu, rewrite);				buf= new StringBuffer();		buf.append("package test1;\n");		buf.append("public class E {\n");		buf.append("\n");		buf.append("    /**\n");					buf.append("     * @since 1.1\n");		buf.append("     */\n");		buf.append("    public void gee(String name) {\n");		buf.append("    }\n");		buf.append("}\n");		assertEqualString(preview, buf.toString());	}