/**
  * @test
  */
 public function shouldCreateFromJwt()
 {
     $jwt = new Jwt(array(JwsHeader::CRITICAL => $critical = array('foo')), array(JwtClaim::AUDIENCE => $audience = 'bar', MethodClaims::DATA => $data = array(1, 2, 3)));
     $methodJwt = MethodJwt::createFromJwt($jwt);
     $this->assertEquals($critical, $methodJwt->headerGet(JwsHeader::CRITICAL));
     $this->assertEquals($audience, $methodJwt->getAudience());
     $this->assertEquals($data, $methodJwt->getData());
 }