### Question:
CommandShellExecutor { public static CommandShellResultSet<List<String>, List<String>> executeScript(String script, String... args) { String[] fullCommand = computeScript(script, args); return execute(fullCommand); }  static CommandShellResultSet<List<String>, List<String>> executeCommand(String command); static CommandShellResultSet<List<String>, List<String>> executeScript(String script, String... args); static Process executeDynamicCommand(String command,
                                                CommandShellResultSet<List<String>, List<String>> resultSet,
                                                AtomicBoolean isRun,
                                                Runnable killOrphanedProcessesRunnable); static CommandShellResultSet<V, E> executeCommand(String command, Function<CommandShellResultSet<List<String>, List<String>>, CommandShellResultSet<V, E>> mapper);  }### Answer:
@Test public void testExecuteScript() { command = "echo"; value = new ArrayList<>(); errors = new ArrayList<>(); errors.add("/bin/echo: /bin/echo: cannot execute binary file"); commandShellResultSet = new CommandShellResultSet<>(value, errors); assertNotNull(commandShellExecutor.executeScript(command, "agent")); }