public function testFormatAccessors()
{
$get = new \ReflectionMethod('Happyr\\LinkedIn\\LinkedIn', 'getFormat');
$get->setAccessible(true);
$linkedIn = new LinkedIn(self::APP_ID, self::APP_SECRET);
//test default
$this->assertEquals('json', $get->invoke($linkedIn));
$format = 'foo';
$linkedIn->setFormat($format);
$this->assertEquals($format, $get->invoke($linkedIn));
}