/**
  * @param int $motionId
  *
  * @return \Wonderland\Application\Model\Motion
  *
  * @throws NotFoundException
  */
 public function getMotion($motionId)
 {
     if (($motion = $this->repository->getMotion($motionId)) === null) {
         throw new NotFoundException('Motion Not Found');
     }
     $this->repository->checkMotion($motion);
     return $motion;
 }
 public function testGetUnexistingMotion()
 {
     $this->assertNull($this->repository->getMotion(10));
 }