public void testConsoleListener() throws Exception {
final Document doc = new Document();
final List<String> commandsHandled = new ArrayList<String>();
ScriptConsolePrompt prompt = new ScriptConsolePrompt(">>> ", "... ");
ScriptConsoleDocumentListener listener = new ScriptConsoleDocumentListener(
new IScriptConsoleViewer2ForDocumentListener() {
public IDocument getDocument() {
return doc;