/**
  * TODO make functional
  */
 public function testCanSendBatchRequests()
 {
     $client = new Client();
     $batchRequestManager = new BatchRequestManager($client);
     $requestFactory = new PaginatedCollectionRequestFactory($client, Settings::QUAGGANS_ENDPOINT);
     $request = $requestFactory->baseRequest();
     $responses = $batchRequestManager->executeRequests([$request]);
     $this->assertNotNull($responses);
 }
 /**
  * @expectedException InvalidArgumentException
  */
 public function testGivenNegativePageWhenBuildingPageRequestThenThrowException()
 {
     $this->factory->pageRequest(self::INVALID_PAGE);
 }