void () { final TemplateManager manager = TemplateManager.getInstance(getProject()); final Template template = manager.createTemplate("frm", "user", "$VAR$"); template.addVariable("VAR", new EmptyNode(), new ConstantNode("<"), true); myFixture.configureByText("a.xml", "<tag><caret></tag>"); manager.startTemplate(myFixture.getEditor(), template); myFixture.checkResult("<tag><selection><</selection><caret></tag>"); }