void () { initText(""" <selection>one<caret></selection> <selection>two<caret></selection> <selection>three<caret></selection> <selection>four<caret></selection>"""); copy(); getEditor().getCaretModel().setCaretsAndSelections(Arrays.asList(new CaretState(new LogicalPosition(0, 0), new LogicalPosition(0, 0), new LogicalPosition(0, 0)), new CaretState(new LogicalPosition(1, 0), new LogicalPosition(1, 0), new LogicalPosition(1, 0)))); paste(); checkResultByText(""" oneone twotwo three four"""); }