/**
  * @covers WindowsAzure\Blob\Models\CreateBlobSnapshotResult::getSnapshot
  * @covers WindowsAzure\Blob\Models\CreateBlobSnapshotResult::setSnapshot
  */
 public function testSetSnapshot()
 {
     $createBlobSnapshotResult = new CreateBlobSnapshotResult();
     $expected = new \DateTime("2008-8-8");
     $createBlobSnapshotResult->setSnapshot($expected);
     $this->assertEquals($expected, $createBlobSnapshotResult->getSnapshot());
 }
 /**
  * Creates CreateBlobSnapshotResult object from the response of the 
  * create Blob snapshot request.
  * 
  * @param array $headers The HTTP response headers in array representation.
  * 
  * @return CreateBlobSnapshotResult
  */
 public static function create($headers)
 {
     $result = new CreateBlobSnapshotResult();
     $headerWithLowerCaseKey = array_change_key_case($headers);
     $result->setEtag($headerWithLowerCaseKey[Resources::ETAG]);
     $result->setLastModified(Utilities::rfc1123ToDateTime($headerWithLowerCaseKey[Resources::LAST_MODIFIED]));
     $result->setSnapshot($headerWithLowerCaseKey[Resources::X_MS_SNAPSHOT]);
     return $result;
 }