public function testRender()
 {
     $media = $this->getMock('\\Oryzone\\MediaStorage\\Model\\MediaInterface');
     $media->expects($this->any())->method('getName')->will($this->returnValue('foo'));
     $variant = $this->getMock('\\Oryzone\\MediaStorage\\Variant\\VariantInterface');
     $variant->expects($this->once())->method('getMetaValue')->with('size')->will($this->returnValue(1234));
     $url = 'http://www.example.com/foo.gif';
     $options = array('attributes' => array('rel' => 'nofollow'));
     $rendered = $this->provider->render($media, $variant, $url, $options);
     $expectedXml = '<a href="http://www.example.com/foo.gif" title="foo (1234)" rel="nofollow" >foo</a>';
     $this->assertXmlStringEqualsXmlString($expectedXml, $rendered);
 }