@@ -0,0 +1,1268 @@
+package org.fxmisc.richtext.api;%0A%0Aimport com.nitorcreations.junit.runners.NestedRunner;%0Aimport javafx.scene.Scene;%0Aimport javafx.stage.Stage;%0Aimport org.fxmisc.flowless.VirtualizedScrollPane;%0Aimport org.fxmisc.richtext.CodeArea;%0Aimport org.junit.Before;%0Aimport org.junit.Test;%0Aimport org.junit.runner.RunWith;%0Aimport org.testfx.framework.junit.ApplicationTest;%0A%0Aimport static javafx.scene.input.KeyCode.*;%0A%0A@RunWith(NestedRunner.class)%0Apublic class ClipboardTests %7B%0A%0A    public class CopyTests extends ApplicationTest %7B%0A%0A        CodeArea area;%0A%0A        @Override%0A        public void start(Stage primaryStage) throws Exception %7B%0A            area = new CodeArea(%22abc%5Cndef%5Cnghi%22);%0A            VirtualizedScrollPane%3CCodeArea%3E vsPane = new VirtualizedScrollPane%3C%3E(area);%0A%0A            Scene scene = new Scene(vsPane, 400, 400);%0A            primaryStage.setScene(scene);%0A            primaryStage.show();%0A        %7D%0A%0A%0A        public class WhenUserMakesSelectionEndingInNewLineCharacter %7B%0A%0A            @Before%0A            public void setup() %7B%0A                area.selectRange(2, 4);%0A            %7D%0A%0A            @Test%0A            public void copyingShouldNotThrowException() %7B%0A                push(CONTROL, C);%0A%0A                push(CONTROL, V);%0A            %7D%0A        %7D%0A    %7D%0A%0A%7D%0A

Add test to prove #573 does not occur due to reverting change in #578