public function testTokenHasExpired()
 {
     $token = new Token();
     $expiresAt = time() - 3600;
     $token->setExpiresAt($expiresAt);
     $expiresIn = $token->getExpiresIn();
     $expiresInCalculated = $expiresAt - time();
     $this->assertEquals($expiresIn, $expiresInCalculated, 'ExpiresIn gets calculated perfectly');
     $this->assertTrue($token->hasExpired(), 'The token has expired');
 }