public function testCheckLogging()
 {
     $rp = new RetentionPolicy();
     $l = new Logging();
     $this->assertNull($l->getRetentionPolicy(), 'Default Logging->getRetentionPolicy should be null');
     $this->assertNull($l->getVersion(), 'Default Logging->getVersion should be null');
     $this->assertNull($l->getDelete(), 'Default Logging->getDelete should be null');
     $this->assertNull($l->getRead(), 'Default Logging->getRead should be false');
     $this->assertNull($l->getWrite(), 'Default Logging->getWrite should be false');
     $l->setRetentionPolicy($rp);
     $l->setVersion('2.0');
     $l->setDelete(true);
     $l->setRead(true);
     $l->setWrite(true);
     $this->assertEquals($rp, $l->getRetentionPolicy(), 'Set Logging->getRetentionPolicy');
     $this->assertEquals('2.0', $l->getVersion(), 'Set Logging->getVersion');
     $this->assertTrue($l->getDelete(), 'Set Logging->getDelete should be true');
     $this->assertTrue($l->getRead(), 'Set Logging->getRead should be true');
     $this->assertTrue($l->getWrite(), 'Set Logging->getWrite should be true');
 }
 /**
  * @covers WindowsAzure\Common\Models\Logging::setRead
  */
 public function testSetRead()
 {
     // Setup
     $sample = TestResources::getServicePropertiesSample();
     $logging = new Logging();
     $expected = Utilities::toBoolean($sample['Logging']['Read']);
     // Test
     $logging->setRead($expected);
     // Assert
     $actual = $logging->getRead();
     $this->assertEquals($expected, $actual);
 }