prompt, new ScriptConsoleHistory(), new ArrayList<IConsoleLineTracker>(), "",
new PyAutoIndentStrategy());
PyAutoIndentStrategy strategy = (PyAutoIndentStrategy) listener.getIndentStrategy();
strategy.setIndentPrefs(new TestIndentPrefs(true, 4));
listener.setDocument(doc);
doc.replace(0, 0, ">>> class A:");
doc.replace(doc.getLength(), 0, "\n");
//Things happen in a thread now, so, we have to wait for it to happen...