/**
  * {@inheritdoc}
  */
 public function getToken()
 {
     $this->configureOptions($this->optionsResolver);
     return $this->helper->getAccessToken($this->optionsResolver->resolve($this->config));
 }
 /**
  * @depends testClass
  */
 public function testReturnToken()
 {
     $json = ['access_token' => 'asdasfaf', 'expires_in' => 15, 'token_type' => 'barear', 'scope' => 'user', 'refresh_token' => 'esd'];
     $mock = new MockHandler([new Response(200, [], json_encode($json))]);
     $handler = HandlerStack::create($mock);
     $client = new Client(['handler' => $handler]);
     $helper = new TokenRetrieveHelper($client, '/token');
     $token = $helper->getAccessToken([]);
     $this->assertInstanceOf(TokenInterface::class, $token, 'Helper should return TokenInterfaceInstance');
     $this->assertEquals('asdasfaf', $token->getAccessToken(), 'Helper not set correct access token');
     $this->assertEquals(15, $token->getExpiresIn(), 'Helper not set correct expires in');
     $this->assertEquals('barear', $token->getTokenType(), 'Helper not set correct token type');
     $this->assertEquals('user', $token->getScope(), 'Helper not set correct scope');
     $this->assertEquals('esd', $token->getRefreshToken(), 'Helper not set correct refresh token');
 }