@Before public void setup() throws IOException { Shell.log.setLevel(Level.OFF); output = new TestOutputStream(); shell = new Shell( new ConsoleReader(new FileInputStream(FileDescriptor.in), output), new PrintWriter(output)); shell.setLogErrorsToConsole(); }