@Test
public void testRunScript_processExitCodeZero_returnTrue() throws Exception {

  String script = "echo";
  StackAdvisorCommandType saCommandType = StackAdvisorCommandType.RECOMMEND_COMPONENT_LAYOUT;
  File actionDirectory = temp.newFolder("actionDir");
  ProcessBuilder processBuilder = createNiceMock(ProcessBuilder.class);
  Process process = createNiceMock(Process.class);
  StackAdvisorRunner saRunner = new StackAdvisorRunner();
  stub(PowerMock.method(StackAdvisorRunner.class, "prepareShellCommand"))
      .toReturn(processBuilder);
  expect(processBuilder.start()).andReturn(process);
  expect(process.waitFor()).andReturn(0);
  replay(processBuilder, process);
  try {
    saRunner.runScript(script, saCommandType, actionDirectory);
  } catch (StackAdvisorException ex) {
    fail("Should not fail with StackAdvisorException");
  }
}