public function testGeneralPage()
 {
     StreamWrapper::emulate(HttpEmulation::fromCallable(function (RequestInterface $request) {
         $this->assertEquals('GET', $request->getMethod());
         $this->assertEquals('/1.1/statuses/user_timeline.json', $request->getUri()->getPath());
         $this->assertEquals(['page' => 1], \GuzzleHttp\Psr7\parse_query($request->getUri()->getQuery()));
         return new \GuzzleHttp\Psr7\Response(200, [], json_encode([['id' => 2, 'text' => 'Status 2'], ['id' => 3, 'text' => 'Status 3']]));
     }));
     $query = new Query($this->webservice, new Endpoint());
     $query->read();
     $query->page(1);
     $query->applyOptions(['index' => 'user_timeline']);
     $resultSet = $this->webservice->execute($query);
     $this->assertInstanceOf('Muffin\\Webservice\\ResultSet', $resultSet);
     $this->assertInstanceOf('Muffin\\Webservice\\Model\\Resource', $resultSet->first());
     $this->assertEquals('Status 2', $resultSet->first()->text);
     $this->assertEquals(2, $resultSet->count());
 }