/**
  * @covers WindowsAzure\ServiceBus\ServiceBusRestProxy::createTopic
  * @covers WindowsAzure\ServiceBus\ServiceBusRestProxy::deleteTopic
  * @covers WindowsAzure\ServiceBus\ServiceBusRestProxy::getTopic
  * @covers WindowsAzure\ServiceBus\ServiceBusRestProxy::listTopics
  */
 private function setupTopic()
 {
     $options = new ListTopicsOptions();
     $options->setSkip(20);
     $options->setTop(2);
     $topics = $this->restProxy->listTopics($options)->getTopicInfos();
     foreach ($topics as $topic) {
         self::write('Topic name is ' . $topic->getTitle());
     }
     self::write('checking if topic already exists ' . $this->topicName);
     try {
         $this->restProxy->getTopic($this->topicName);
         self::write('Topic already exists deleting it');
         $this->restProxy->deleteTopic($this->topicName);
     } catch (\Exception $e) {
         self::write('could not get an existing topic (' . $e->getCode() . '), proceeding...');
     }
     $topic = new TopicInfo($this->topicName);
     $topic->setEnableBatchedOperations(true);
     $topic->setMaxSizeInMegabytes(1024);
     $topic->setRequiresDuplicateDetection(false);
     self::write('Creating topic ' . $this->topicName);
     $this->restProxy->createTopic($topic);
     $this->restProxy->getTopic($this->topicName);
 }
 /** 
  * @covers WindowsAzure\ServiceBus\Models\TopicInfo::getEnableBatchedOperations
  * @covers WindowsAzure\ServiceBus\Models\TopicInfo::setEnableBatchedOperations
  */
 public function testGetSetEnableBatchedOperations()
 {
     // Setup
     $expected = 'testEnableBatchedOperations';
     $topicInfo = new TopicInfo();
     // Test
     $topicInfo->setEnableBatchedOperations($expected);
     $actual = $topicInfo->getEnableBatchedOperations();
     // Assert
     $this->assertEquals($expected, $actual);
 }