public function invalidateBearerToken(BearerToken $token)
    {
        $request = $this->createRequest('/oauth2/invalidate_token');
        $request->setPostParameter('access_token', $token->getValue());
        $this->signRequest($request, new BasicToken());

        $response = $this->sendRequest($request);

        if ($token->getValue() !== $response->getData('access_token')) {
            throw new OAuthException('An error occured when invalidating the bearer token.', $response);
        }
    }