/**
  * @covers MicrosoftAzure\Storage\Blob\Models\ContainerAcl::toXml
  * @covers MicrosoftAzure\Storage\Blob\Models\ContainerAcl::toArray
  * @depends testCreateMultipleEntries
  */
 public function testToXml($acl)
 {
     // Setup
     $sample = TestResources::getContainerAclMultipleEntriesSample();
     $expected = ContainerAcl::create('container', $sample['SignedIdentifiers']);
     $xmlSerializer = new XmlSerializer();
     // Test
     $xml = $acl->toXml($xmlSerializer);
     // Assert
     $array = Utilities::unserialize($xml);
     $acl = ContainerAcl::create('container', $array);
     $this->assertEquals($expected->getSignedIdentifiers(), $acl->getSignedIdentifiers());
 }
 /**
  * @covers MicrosoftAzure\Storage\Blob\BlobRestProxy::setContainerAcl
  */
 public function testSetContainerAcl()
 {
     // Setup
     $name = 'setcontaineracl' . $this->createSuffix();
     $this->createContainer($name);
     $sample = TestResources::getContainerAclMultipleEntriesSample();
     $expectedETag = '0x8CAFB82EFF70C46';
     $expectedLastModified = new \DateTime('Sun, 25 Sep 2011 19:42:18 GMT');
     $expectedPublicAccess = 'container';
     $acl = ContainerAcl::create($expectedPublicAccess, $sample['SignedIdentifiers']);
     // Test
     $this->restProxy->setContainerAcl($name, $acl);
     // Assert
     $actual = $this->restProxy->getContainerAcl($name);
     $this->assertEquals($acl->getPublicAccess(), $actual->getContainerAcl()->getPublicAccess());
     $this->assertEquals($acl->getSignedIdentifiers(), $actual->getContainerAcl()->getSignedIdentifiers());
 }