/**
  * @test
  */
 public function it_does_not_use_a_cached_token_when_forced()
 {
     $token = new Token('abcd1234', new \DateTime('+1 hour'));
     $this->cache->expects($this->any())->method('get')->willReturn(json_encode($token));
     $this->pool->expects($this->once())->method('requestToken')->willReturn($this->token);
     $this->assertSame($this->token, $this->pool->getToken(true));
     $this->assertSame($this->token->getId(), $this->pool->getTokenId());
     $this->assertSame($this->endpointUrl, $this->pool->getEndpointUrl());
 }