/**
  * @param AbstractCrudObject $subject
  */
 public function assertCannotUpdate(AbstractCrudObject $subject)
 {
     $has_throw_exception = false;
     try {
         $subject->update();
     } catch (\Exception $e) {
         $has_throw_exception = true;
     }
     $this->assertTrue($has_throw_exception);
 }