/**
  * @dataProvider urlProvider
  */
 public function testGetUrl($baseUrl)
 {
     $query = m::mock('BrightTALK\\lib\\ACSQueryBuilder\\Query');
     $query->shouldReceive('encode')->once()->andReturn('q=hello');
     $urlGenerator = new UrlGenerator($baseUrl);
     $url = $urlGenerator->getUrl($query);
     $this->assertContains('search?q=hello', $url);
     $this->assertContains('https://search', $url);
     m::close();
 }
 /**
  * Get the complete aws url
  *
  * @return string
  */
 public function getUrl()
 {
     return $this->urlGenerator->getUrl($this->getQuery());
 }