public function testGetVariationOriginal()
{
$originalPath = 'foo/bar/image.jpg';
$variationName = 'original';
$imageId = '123-45';
$imageValue = new ImageValue(array('id' => $originalPath, 'imageId' => $imageId));
$field = new Field(array('value' => $imageValue));
$expectedUrl = 'http://localhost/foo/bar/image.jpg';
$this->ioResolver->expects($this->never())->method('isStored')->with($originalPath, $variationName)->will($this->returnValue(false));
$this->logger->expects($this->once())->method('debug');
$this->ioResolver->expects($this->once())->method('resolve')->with($originalPath, $variationName)->will($this->returnValue($expectedUrl));
$expected = new ImageVariation(array('name' => $variationName, 'fileName' => 'image.jpg', 'dirPath' => 'http://localhost/foo/bar', 'uri' => $expectedUrl, 'imageId' => $imageId));
$this->assertEquals($expected, $this->aliasGenerator->getVariation($field, new VersionInfo(), $variationName));
}