public function setUp()
 {
     file_put_contents($this->dbPath, '');
     $sqliteConfig = new SqliteConfig($this->dbPath);
     $this->photoRepository = new SqlitePhotoRepository($sqliteConfig);
     $this->photoRepository->initialize();
     $this->thumbRepository = new SqlitePhotoThumbRepository($sqliteConfig);
     $this->thumbRepository->initialize();
     $httpUrl = new HttpUrl('http://test');
     $this->photoId = new PhotoId();
     $this->photo = new Photo($this->photoId, new ResourceId('test'), new PhotoName('test'), $httpUrl, new PhotoAltCollection(), new Position());
     $this->thumbId = new ThumbId();
     $this->thumb = new PhotoThumb($this->thumbId, $this->photoId, $httpUrl, new PhotoThumbSize(1, 1));
     $this->photoRepository->save($this->photo);
     $this->thumbRepository->save($this->thumb);
 }