/**
  * @dataProvider testToXmlProvider
  */
 public function testToXml($expectedXml, $loc, $caption = null, $geoLocalisation = null, $title = null, $license = null)
 {
     try {
         $image = new Sitemap\Url\GoogleImage($loc, $caption, $geoLocalisation, $title, $license);
     } catch (\RuntimeException $e) {
         $this->fail('An exception must not be thrown');
     }
     $this->assertEquals($expectedXml, $image->toXML());
 }