void () { typeInText(myEditor, "hello"); typeInText(myEditorCopy1, "hello1"); typeInText(myEditorCopy2, "hello2"); undo(myEditor); assertEquals("", myEditor.getDocument().getText()); assertEquals("hello1", myEditorCopy1.getDocument().getText()); assertEquals("hello2", myEditorCopy2.getDocument().getText()); }