protected ByteArrayOutputStream consoleOutputStream;
@Before
public void setUp() throws Exception {
consoleOutputStream = new ByteArrayOutputStream();
console = new ConsoleReader(null, consoleOutputStream, new TerminalSupport(true) { });
console.setKeyMap(KeyMap.EMACS);
}