/**
  * @covers MicrosoftAzure\Storage\Blob\Models\GetBlobPropertiesOptions::setLeaseId
  * @covers MicrosoftAzure\Storage\Blob\Models\GetBlobPropertiesOptions::getLeaseId
  */
 public function testSetLeaseId()
 {
     // Setup
     $expected = '0x8CAFB82EFF70C46';
     $options = new GetBlobPropertiesOptions();
     $options->setLeaseId($expected);
     // Test
     $options->setLeaseId($expected);
     // Assert
     $this->assertEquals($expected, $options->getLeaseId());
 }
 /**
  * Returns all properties and metadata on the blob.
  * 
  * @param string                          $container name of the container
  * @param string                          $blob      name of the blob
  * @param Models\GetBlobPropertiesOptions $options   optional parameters
  * 
  * @return Models\GetBlobPropertiesResult
  * 
  * @see http://msdn.microsoft.com/en-us/library/windowsazure/dd179394.aspx
  */
 public function getBlobProperties($container, $blob, $options = null)
 {
     Validate::isString($container, 'container');
     Validate::isString($blob, 'blob');
     Validate::notNullOrEmpty($blob, 'blob');
     $method = Resources::HTTP_HEAD;
     $headers = array();
     $postParams = array();
     $queryParams = array();
     $path = $this->_createPath($container, $blob);
     $statusCode = Resources::STATUS_OK;
     if (is_null($options)) {
         $options = new GetBlobPropertiesOptions();
     }
     $headers = $this->addOptionalAccessConditionHeader($headers, $options->getAccessCondition());
     $this->addOptionalHeader($headers, Resources::X_MS_LEASE_ID, $options->getLeaseId());
     $this->addOptionalQueryParam($queryParams, Resources::QP_SNAPSHOT, $options->getSnapshot());
     $this->addOptionalQueryParam($queryParams, Resources::QP_TIMEOUT, $options->getTimeout());
     $response = $this->send($method, $headers, $queryParams, $postParams, $path, $statusCode);
     $headers = $response->getHeaders();
     $formattedHeaders = HttpFormatter::formatHeaders($headers);
     return $this->_getBlobPropertiesResultFromResponse($formattedHeaders);
 }