public function testLoadBinaryFileByUriWithPublishedFile()
{
$binaryFileUri = 'var/test/images/an/image.png';
$binaryFile = new BinaryFile(array('id' => 'an/image.png'));
$this->publishedIoServiceMock->expects($this->once())->method('loadBinaryFileByUri')->with($binaryFileUri)->will($this->returnValue($binaryFile));
self::assertSame($binaryFile, $this->service->loadBinaryFileByUri($binaryFileUri));
}