function it_indicates_if_stopping(BatchStatus $stoppingStatus)
 {
     $this->isStopping()->shouldReturn(false);
     $stoppingStatus->getValue()->willReturn(BatchStatus::STOPPING);
     $this->setStatus($stoppingStatus);
     $this->isStopping()->shouldReturn(true);
 }
 /**
  * Sets the current status of this step
  *
  * @param BatchStatus $status the current status of this step
  *
  * @return JobExecution
  */
 public function setStatus(BatchStatus $status)
 {
     $this->status = $status->getValue();
     return $this;
 }