/**
  * Registers an exception that will be thrown when a entity with the id in the exception is requested.
  * If an exception with the same EntityId was already present it will be replaced by the new one.
  *
  * @since 3.1
  *
  * @param EntityLookupException $exception
  */
 public function addException(EntityLookupException $exception)
 {
     $this->exceptions[$exception->getEntityId()->getSerialization()] = $exception;
 }
 public function testConstructorWithJustAnId()
 {
     $propertyId = new PropertyId('P42');
     $exception = new EntityLookupException($propertyId);
     $this->assertEquals($propertyId, $exception->getEntityId());
 }