public function testPublicPrivate()
 {
     $container = new Container('foo');
     $this->assertTrue($container->isPrivate(), 'New containers are private by default');
     $this->assertFalse($container->isPublic());
     $container->setPublic();
     $this->assertTrue($container->isPublic());
     $this->assertFalse($container->isPrivate());
     $container->setPrivate();
     $this->assertTrue($container->isPrivate());
     $this->assertFalse($container->isPublic());
 }
 /**
  * @inheritdoc
  */
 public function updateContainer(Container $container)
 {
     $this->logger->info(sprintf('Updating container "%s"', $container->getName()));
     // make readable for public
     if ($container->isPublic()) {
         $container->getMetadata()->set('Read', '.r:*');
     }
     $response = $this->post($container->getName(), null, $container->getHeaders());
     return $this->assertResponse($response, [204 => true]);
 }