public function testInvalidateAccessToken()
 {
     $this->cache->invalidateAccessToken('my_token');
     $accessToken = $this->cache->getAccessToken('my_token');
     $this->assertNull($accessToken);
 }
 /**
  * Delete an access token
  *
  * @param \League\OAuth2\Server\Entity\AccessTokenEntity $token The access token to delete
  *
  * @return void
  */
 public function delete(AccessTokenEntity $token)
 {
     //Invalidate cache
     $this->cache->invalidateAccessToken($token);
     $this->storage->delete($token);
 }