public function testStorageAccessors()
{
$method = new \ReflectionMethod('Happyr\\LinkedIn\\Authenticator', 'getStorage');
$method->setAccessible(true);
$requestManager = $this->getRequestManagerMock();
$auth = new Authenticator($requestManager, self::APP_ID, self::APP_SECRET);
// test default
$this->assertInstanceOf('Happyr\\LinkedIn\\Storage\\SessionStorage', $method->invoke($auth));
$object = m::mock('Happyr\\LinkedIn\\Storage\\DataStorageInterface');
$auth->setStorage($object);
$this->assertEquals($object, $method->invoke($auth));
}