void () { myFixture.configureByText("a.java", "\n<caret>\n"); Template template = getTemplateManager().createTemplate("imp", "user", "import $MODIFIER$ java.$NAME$;"); template.addVariable("NAME", new MacroCallNode(new CompleteMacro(true)), new EmptyNode(), true); template.addVariable("MODIFIER", new EmptyExpression(), true); startTemplate(template); myFixture.type("uti\n"); myFixture.checkResult("\nimport java.util.<caret>;\n"); assert !getState().isFinished(); }