stub(PowerMock.method(StackAdvisorRunner.class, "prepareShellCommand"))
.toReturn(processBuilder);
expect(processBuilder.start()).andReturn(process);
expect(process.waitFor()).andReturn(1);
replay(processBuilder, process);
<BUG>boolean result = saRunner.runScript(script, saCommandType, actionDirectory);
assertEquals(false, result);
}</BUG>
@Test
<BUG>public void testRunScript_processExitCodeZero_returnTrue() throws IOException,

InterruptedException {</BUG>
String script = "echo";

stub(PowerMock.method(StackAdvisorRunner.class, "prepareShellCommand"))
.toReturn(processBuilder);
expect(processBuilder.start()).andThrow(new IOException());
replay(processBuilder);
saRunner.runScript(script, saCommandType, actionDirectory);
}
@Test(expected = StackAdvisorRequestException.class)
public void testRunScript_processExitCode1_returnFalse() throws Exception {
String script = "echo";
