final String[] commands = createCommands();
in = MockShell.makeCommands(commands);
writer = new StringWriter();
final MockShell shell = new MockShell(in, writer);
shell.config(args);
// Can't call createtable in the shell with MockAccumulo
shell.getConnector().tableOperations().create("test");
try {
shell.start();
} catch (Exception e) {
Assert.fail("Exception while running commands: " + e.getMessage());
}
shell.getReader().flushConsole();
final String[] output = StringUtils.split(writer.toString(), '\n');
boolean formatterOn = false;