public function testRemoveAllWithFilter()
 {
     $filter = new Filter();
     $filter->must()->contain('name', 'Doe');
     $this->repository->removeAll($filter);
     $this->assertFalse($this->repository->exists(new ObjectId(1)));
 }
 /**
  * Returns whether an entity with the given id exists.
  *
  * @param Color|Identity $id
  *
  * @return bool
  */
 public function exists(Identity $id) : bool
 {
     return parent::exists($id);
 }