@Test
public void cancel() {

  MyTaskExecutionProgressIndicator indicator = new MyTaskExecutionProgressIndicator(myTaskId, myBuildStopper);
  indicator.cancel();
  verify(myBuildStopper).attemptToStopBuild(myTaskId, null);
  assertTrue(indicator.onCancelInvoked);
}