public function testStorageContainsSerializedUserAgent()
 {
     $this->config['desktop'] = array('device' => array('classname' => 'Zend_Http_TestAsset_DesktopDevice'));
     $this->config['user_agent'] = 'desktop';
     $ua = new Zend_Http_UserAgent($this->config);
     // prime storage by retrieving device
     $device = $ua->getDevice();
     $storage = $ua->getStorage();
     $serialized = $storage->read();
     $test = unserialize($serialized);
     $this->assertEquals($ua->getBrowserType(), $test['browser_type']);
     $this->assertEquals($ua->getConfig(), $test['config']);
     $this->assertEquals('Zend_Http_TestAsset_DesktopDevice', $test['device_class']);
     $this->assertEquals($ua->getUserAgent(), $test['user_agent']);
     $this->assertEquals($ua->getHttpAccept(), $test['http_accept']);
     $test = unserialize($test['device']);
     $this->assertEquals($device->getAllFeatures(), $test['_aFeatures']);
     $this->assertEquals($device->getBrowser(), $test['_browser']);
     $this->assertEquals($device->getBrowserVersion(), $test['_browserVersion']);
     $this->assertEquals($device->getUserAgent(), $test['_userAgent']);
     $this->assertEquals($device->getImages(), $test['_images']);
 }