/** 
  * @covers WindowsAzure\ServiceBus\Models\BrokeredMessage::getDeliveryCount
  * @covers WindowsAzure\ServiceBus\Models\BrokeredMessage::setDeliveryCount
  */
 public function testGetSetDeliveryCount()
 {
     // Setup
     $expected = 100;
     $brokeredMessage = new BrokeredMessage();
     // Test
     $brokeredMessage->setDeliveryCount($expected);
     $actual = $brokeredMessage->getDeliveryCount();
     // Assert
     $this->assertEquals($expected, $actual);
 }
 /**
  * Get the number of times the job has been attempted.
  *
  * @return int
  */
 public function attempts()
 {
     return $this->job->getDeliveryCount();
 }