void () { myConsole.setInputText("Statement 1"); executeCommand(); myConsole.setInputText("Statement 2"); executeCommand(); myConsole.setInputText("Statement 3"); executeCommand(); myConsole.setInputText("Different Prefix"); executeCommand(); assertEquals("", myConsole.getEditorDocument().getText()); }