@Test(expected = ExecutionException.class) public void shouldThrowAnIllegalArgumentExceptionWhenCommandNotFound() { CommandLineExecutor commandLineExecutor = new CommandLineExecutor(); commandLineExecutor.execCommand("commandNotFound.sh"); }
public String execCommand(String... arguments) { return execCommandAsArray(arguments).get(0); }
CommandLineExecutor { public String execCommand(String... arguments) { return execCommandAsArray(arguments).get(0); } }
CommandLineExecutor { public String execCommand(String... arguments) { return execCommandAsArray(arguments).get(0); }  }
CommandLineExecutor { public String execCommand(String... arguments) { return execCommandAsArray(arguments).get(0); }  String execCommand(String... arguments); List<String> execCommandAsArray(String... arguments); }
CommandLineExecutor { public String execCommand(String... arguments) { return execCommandAsArray(arguments).get(0); }  String execCommand(String... arguments); List<String> execCommandAsArray(String... arguments);  }