public function testReachNextStateError()
 {
     $model = new FakeModel();
     $this->modelStorage->newModelStateSuccess($model, 'document_proccess', 'step_create_doc');
     $modelState = $this->getProcessHandler()->reachNextState($model, 'remove');
     $this->assertEquals('step_fake', $modelState->getStepName());
 }
 /**
  * {@inheritdoc}
  */
 public function getAllStates(ModelInterface $model, $successOnly = true)
 {
     return $this->storage->findAllModelStates($model, $this->process->getName(), $successOnly);
 }