UnixController extends AbstractOSController { @Override public int status(String... args) { return runSync("status", args); } UnixController(String muleHome, int timeout); @Override String getMuleBin(); @Override int getProcessId(); @Override int status(String... args);  }
@Test public void statusRunningTest() throws Exception { doReturn(RUNNING_STATUS).when(controllerSpy, "runSync", "status", CONTROLLER_ARGUMENTS); assertThat("Status is not the expected", controllerSpy.status(CONTROLLER_ARGUMENTS), equalTo(RUNNING_STATUS)); }
@Test public void statusNotRunningTest() throws Exception { doReturn(NOT_RUNNING_STATUS).when(controllerSpy, "runSync", "status", CONTROLLER_ARGUMENTS); assertThat("Status is not the expected", controllerSpy.status(CONTROLLER_ARGUMENTS), equalTo(NOT_RUNNING_STATUS)); }