void () { myFixture.configureByText(XmlFileType.INSTANCE, "<div<caret>></div>"); final Editor editor = EditorFactory.getInstance().createEditor(myFixture.getEditor().getDocument()); EditorFactory.getInstance().releaseEditor(editor); type("v"); myFixture.checkResult("<divv></divv>"); }