/**
  * @expectedException \eZ\Publish\Core\IO\Exception\BinaryFileNotFoundException
  */
 public function testGetResourceNotFound()
 {
     $this->filesystem->expects($this->once())->method('readStream')->with('prefix/my/file.png')->will($this->throwException(new FileNotFoundException('prefix/my/file.png')));
     $this->handler->getResource('prefix/my/file.png');
 }
 public function getFileInputStream(BinaryFile $binaryFile)
 {
     $this->checkBinaryFileId($binaryFile->id);
     return $this->binarydataHandler->getResource($this->getPrefixedUri($binaryFile->id));
 }