void () { initText("<selection><caret>one</selection> two \n" + "<selection><caret>three</selection> four "); executeAction("EditorCopy"); executeAction("EditorLineEnd"); executeAction("EditorPaste"); checkResultByText("one twoone<caret> \n" + "three fourthree<caret> "); }