void () { init(""" line1 line2 line3 line4"""); mouse().pressAt(1, 1).dragTo(2, 2).release(); executeAction(IdeActions.ACTION_EDITOR_TEXT_END_WITH_SELECTION); checkResultByText(""" line1 l<selection>ine2<caret></selection> l<selection>ine3<caret></selection> l<selection>ine4<caret></selection>"""); }