public function testGettersAndSetters()
 {
     $owner = $this->getMock(TokenOwnerInterface::class);
     $client = new Client();
     $expiresAt = new DateTime();
     $accessToken = new AccessToken();
     $accessToken->setToken('token');
     $accessToken->setScopes(['scope1', 'scope2']);
     $accessToken->setClient($client);
     $accessToken->setExpiresAt($expiresAt);
     $accessToken->setOwner($owner);
     $this->assertEquals('token', $accessToken->getToken());
     $this->assertCount(2, $accessToken->getScopes());
     $this->assertTrue($accessToken->matchScopes('scope1'));
     $this->assertFalse($accessToken->matchScopes('scope3'));
     $this->assertSame($client, $accessToken->getClient());
     $this->assertEquals($expiresAt, $accessToken->getExpiresAt());
     $this->assertSame($owner, $accessToken->getOwner());
 }