public function testGetOpenedClient()
 {
     $this->if($this->mockGenerator()->orphanize('__construct'))->and($this->mockClass('\\Sly\\NotificationPusher\\Adapter\\Gcm', '\\Mock'))->and($object = new \Mock\Gcm())->and($this->mockGenerator()->orphanize('__construct'))->and($this->mockGenerator()->orphanize('open'))->and($this->mockClass('\\ZendService\\Google\\Gcm\\Client', '\\Mock\\ZendService'))->and($serviceClient = new \Mock\ZendService\Client())->and($object->getMockController()->getParameters = array())->exception(function () use($object) {
         $object->getOpenedClient(new BaseServiceClient());
     })->isInstanceOf('\\ZendService\\Google\\Exception\\InvalidArgumentException')->message->contains('The api key must be a string and not empty')->when($object = new TestedModel(array('apiKey' => 'test')))->and($object->getOpenedClient($serviceClient));
 }