void () { initText("foo"); getEditor().getSettings().setVirtualSpace(true); mouse().clickAt(0, 10); executeAction(IdeActions.ACTION_SELECT_ALL); CopyPasteManager.getInstance().setContents(new StringSelection("bar")); paste(); checkResultByText("bar<caret>"); }