Execute { public Result toSystemOut() { return this.execute(System.out, System.err); } Execute(String command);  Execute(String[] commandPlusArgs); Execute addEnvPaths(); Execute addAllEnv(); Execute arg(String arg); Execute input(String input); Execute env(String key, String value); Execute clearEnv(); Execute path(String possiblePath); Execute clearPath(); Result toSystemOut(); Result toFile(String outPath); Result toFile(File out); BufferedResult toBuffer();  }
@Test public void toSystemOut() { Execute e = new Execute("ls"); Result r = e.toSystemOut(); assertThat(r.success, is(true)); assertThat(r.exitValue, is(0)); }