/**
  * @return EntityLookup
  */
 protected static function getEntityLookup()
 {
     $phpunit = new self();
     $entityLookup = $phpunit->getMock('Wikibase\\DataModel\\Services\\Lookup\\EntityLookup');
     $entityLookup->expects($phpunit->exactly(20))->method('getEntity')->will($phpunit->returnCallback(function (ItemId $id) {
         return new Item($id);
     }));
     return $entityLookup;
 }