public function testGetAccessTokenWithoutToken()
{
$client = new Client();
$mock = new MockPlugin();
$mock->addResponse(new Response(200));
$client->addSubscriber($mock);
$guzzle3Client = new Guzzle3Client($client);
$api = new Api('foo', $this->clientConfig[0], $this->storage, $guzzle3Client);
$context = new Context('a_user', array('foo', 'bar'));
$this->assertFalse($api->getAccessToken($context));
$this->assertEquals('http://www.example.org/authorize?client_id=foo&response_type=code&state=my_custom_state&scope=bar+foo', $api->getAuthorizeUri($context, 'my_custom_state'));
}