settings.setInputStream(inputStream);
settings.setStdOut(stdout);
settings.setStdErr(stderr);
settings.setName("test");
settings.setLogging(true);
settings.setTerminal(new TestTerminal());
settings.getOperationManager().addOperation(new KeyOperation(Key.ENTER, Operation.NEW_LINE));
}
catch (IOException e)
{
throw new RuntimeException("Could not configure Shell.", e);