/**
  * @covers WindowsAzure\ServiceManagement\Models\GetStorageServicePropertiesResult::setStorageService
  * @covers WindowsAzure\ServiceManagement\Models\GetStorageServicePropertiesResult::getStorageService
  */
 public function testSetStorageService()
 {
     // Setup
     $expected = new StorageService();
     $result = new GetStorageServicePropertiesResult();
     // Test
     $result->setStorageService($expected);
     // Assert
     $this->assertEquals($expected, $result->getStorageService());
 }
 /**
  * Returns the system properties for the specified storage account.
  * 
  * These properties include: the address, description, and label of the storage
  * account; and the name of the affinity group to which the service belongs, 
  * or its geo-location if it is not part of an affinity group.
  * 
  * @param string $name The storage account name.
  * 
  * @return Models\GetStorageServicePropertiesResult
  * 
  * @see http://msdn.microsoft.com/en-us/library/windowsazure/ee460802.aspx 
  */
 public function getStorageServiceProperties($name)
 {
     Validate::isString($name, 'name');
     Validate::notNullOrEmpty($name, 'name');
     $context = new HttpCallContext();
     $context->setMethod(Resources::HTTP_GET);
     $context->setPath($this->_getStorageServicePath($name));
     $context->addStatusCode(Resources::STATUS_OK);
     $response = $this->sendContext($context);
     $parsed = $this->dataSerializer->unserialize($response->getBody());
     return GetStorageServicePropertiesResult::create($parsed);
 }