public function testBrokenJsonResponse()
{
$client = new Client();
$mock = new MockPlugin();
$mock->addResponse(new Response(200, null, $this->tokenResponse[1]));
$client->addSubscriber($mock);
$history = new HistoryPlugin();
$history->setLimit(5);
$client->addSubscriber($history);
$guzzle3Client = new Guzzle3Client($client);
$tokenRequest = new TokenRequest($guzzle3Client, $this->clientConfig[0]);
$this->assertFalse($tokenRequest->withRefreshToken('refresh_123_456'));
}