BuildProcessController implements ProcessController { @Override public void stopProcess() { myBuildStopper.attemptToStopBuild(myTaskId, myProgressIndicator); } BuildProcessController(@NotNull ExternalSystemTaskId taskId,
                         @NotNull BuildStopper buildStopper,
                         @NotNull ProgressIndicator progressIndicator); @Override void stopProcess(); @Override boolean isProcessStopped();  }
@Test public void stopProcess() throws Exception { myController.stopProcess(); verify(myBuildStopper).attemptToStopBuild(myId, myProgressIndicator); }