baos = new ByteArrayOutputStream();
System.setIn(bais);
System.setOut(new PrintStream(baos));
Shell shell = new ShellImpl();
shell.init(new String[]{"-f","-"});
shell.run();
System.out.flush();
String output = baos.toString("UTF-8");
assert output.contains("Version");
} finally {
System.setIn(in);