void () { typeInText("initial "); final StartMarkAction[] compound = new StartMarkAction[1]; start(compound); assertNotNull(compound); try { typeInText("text"); backspace(getFirstEditor()); typeInText("TT"); } finally { finish(compound[0]); } checkEditorText("initial texTT"); undoFirstEditor(); checkEditorText("initial "); assertUndoInFirstEditorIsAvailable(); redoFirstEditor(); assertRedoInFirstEditorNotAvailable(); checkEditorText("initial texTT"); }