ExecutingCommand { public static List<String> runNative(String cmdToRun) { String[] cmd = cmdToRun.split(" "); return runNative(cmd); } private  ExecutingCommand(); static List<String> runNative(String cmdToRun); static List<String> runNative(String[] cmdToRunWithArgs); static String getFirstAnswer(String cmd2launch); static String getAnswerAt(String cmd2launch, int answerIdx);  }
@Test public void testRunNative() { List<String> test = ExecutingCommand.runNative(ECHO); assertEquals(1, test.size()); assertEquals("Test", test.get(0)); assertEquals("Test", ExecutingCommand.getFirstAnswer(ECHO)); assertTrue(ExecutingCommand.runNative(BAD_COMMAND).isEmpty()); assertTrue(ExecutingCommand.getFirstAnswer(BAD_COMMAND).isEmpty()); }