public function testJwtUtil()
 {
     $storage = OAuth2_Storage_Bootstrap::getInstance()->getMemoryStorage();
     $jwtUtil = new OAuth2_Encryption_JWT();
     $client_id = 'Test Client ID';
     $params = $this->getJWTParams(null, null, null, $client_id);
     if (version_compare(PHP_VERSION, '5.3.3') <= 0) {
         $encoded = $jwtUtil->encode($params, 'mysecretkey', 'HS256');
         $client_id .= ' PHP-5.2';
     } else {
         $encoded = $jwtUtil->encode($params, $this->privateKey, 'RS256');
     }
     $payload = $jwtUtil->decode($encoded, $storage->getClientKey($client_id, "*****@*****.**"));
     $this->assertEquals($params, $payload);
 }