public function testRenderWithOptions()
    {
        $map = new Map();
        $map->setJavascriptVariable('map');
        $map->getMarkerCluster()->setJavascriptVariable('marker_cluster');
        $map->getMarkerCluster()->setOption('foo', 'bar');
        $map->addMarker($marker = new Marker());
        $marker->setJavascriptVariable('marker');
        $marker->getPosition()->setJavascriptVariable('marker_position');
        $expected = <<<EOF
marker_cluster = new MarkerClusterer(map, map_container.functions.to_array(map_container.markers), {"foo":"bar"});

EOF;
        $this->assertSame($expected, $this->helper->render($map->getMarkerCluster(), $map));
    }
 public function testMarkerCluster()
 {
     $markerCluster = $this->getMock('Ivory\\GoogleMap\\Overlays\\MarkerCluster');
     $this->map->setMarkerCluster($markerCluster);
     $this->assertSame($markerCluster, $this->map->getMarkerCluster());
 }