/**
  * Checks the render javascripts method
  */
 public function testRenderJavascripts()
 {
     $mapTest = new Model\Map();
     $mapTest->setHtmlContainerId('html_container_id');
     $centerTest = new Base\Coordinate(1.1, 2.1, true);
     $mapTest->setCenter($centerTest);
     $mapTest->setMapOption('mapTypeId', 'satellite');
     $mapTest->setMapOption('zoom', 5);
     $mapTest->setLanguage('en');
     $this->assertEquals(self::$mapHelper->renderJavascripts($mapTest), '<script type="text/javascript" src="http://maps.google.com/maps/api/js?language=en&sensor=false"></script>' . PHP_EOL . '<script type="text/javascript">' . PHP_EOL . 'var ' . $mapTest->getJavascriptVariable() . ' = new google.maps.Map(document.getElementById("html_container_id"), {"mapTypeId":google.maps.MapTypeId.SATELLITE,"zoom":5});' . PHP_EOL . $mapTest->getJavascriptVariable() . '.setCenter(new google.maps.LatLng(1.1, 2.1, true));' . PHP_EOL . 'var closable_info_windows = Array();' . PHP_EOL . '</script>' . PHP_EOL);
 }