public function testThatSettingAnAuthorizationKeyIsPropagatedToAllLayers()
 {
     $blizzardServiceMock = $this->getMock('\\petrepatrasc\\StarcraftConnectionLayer\\Service\\BlizzardApi', array('setAuthorizationToken'));
     $blizzardServiceMock->expects($this->atLeastOnce())->method('setAuthorizationToken')->withAnyParameters()->will($this->returnValue($blizzardServiceMock));
     $connectivityLayerMock = $this->getMock('\\petrepatrasc\\StarcraftConnectionLayer\\Service\\ConnectionService', array('getBlizzardApi'));
     $connectivityLayerMock->expects($this->atLeastOnce())->method('getBlizzardApi')->withAnyParameters()->will($this->returnValue($blizzardServiceMock));
     $this->callServiceMock->expects($this->atLeastOnce())->method('getConnectivityLayer')->withAnyParameters()->will($this->returnValue($connectivityLayerMock));
     $sampleAuthorizationToken = "TEST";
     $this->apiService->setAuthorizationToken($sampleAuthorizationToken);
     $this->assertEquals($sampleAuthorizationToken, $this->apiService->getAuthorizationToken());
 }
 /**
  * @expectedException \petrepatrasc\BlizzardApiBundle\Entity\Exception\BlizzardApiException
  */
 public function testTriggerBlizzardApiException()
 {
     $player = $this->apiService->getPlayerProfile(Entity\Region::Europe, 321412, "testtesttest");
 }