/**
  * @expectedException \eZ\Publish\Core\IO\Exception\BinaryFileNotFoundException
  */
 public function testGetContentsNotFound()
 {
     $this->filesystem->expects($this->once())->method('read')->with('prefix/my/file.png')->will($this->throwException(new FileNotFoundException('prefix/my/file.png')));
     self::assertEquals('This is my contents', $this->handler->getContents('prefix/my/file.png'));
 }
 public function getFileContents(BinaryFile $binaryFile)
 {
     $this->checkBinaryFileId($binaryFile->id);
     return $this->binarydataHandler->getContents($this->getPrefixedUri($binaryFile->id));
 }