public function testExecute()
 {
     $builder = new SearchBuilder();
     $this->assertEquals(['jql' => null, 'startAt' => null, 'maxResults' => $builder->getLimit(), 'validateQuery' => true, 'fields' => null, 'expand' => null], $builder->execute());
     $builder->setJql('project = test')->setPage(5)->setValidateQuery(false)->setFields(['id', 'key', 'assignee'])->setExpandFields(['assignee']);
     $this->assertEquals(['jql' => 'project = test', 'startAt' => 80, 'maxResults' => $builder->getLimit(), 'validateQuery' => false, 'fields' => ['id', 'key', 'assignee'], 'expand' => ['assignee']], $builder->execute());
 }
 /**
  * Search issues by given parameters
  *
  * @link  https://docs.atlassian.com/jira/REST/latest/#d2e4257
  *
  * @param  SearchBuilder $searchBuilder
  *
  * @return \GuzzleHttp\Message\Response
  */
 public function search(SearchBuilder $searchBuilder)
 {
     return $this->postRequest('search', $searchBuilder->execute());
 }