TestProcessStreamListener psl = new TestProcessStreamListener(true /* wantsStdout */);
ProcessLauncher launcher = createProcessLauncher(psl, null, execName);
launcher.run();
Integer exitValue = launcher.waitForTermination();
assertNotNull(exitValue);
assertEquals(0, exitValue.intValue());
// Both methods should return the same exit value!
assertEquals(exitValue, launcher.getExitValue());