/**
  * @covers WindowsAzure\Table\Models\QueryTablesOptions::setFilter
  * @covers WindowsAzure\Table\Models\QueryTablesOptions::getFilter
  */
 public function testSetFilter()
 {
     // Setup
     $options = new QueryTablesOptions();
     $expected = Filter::applyConstant('constValue', EdmType::STRING);
     // Test
     $options->setFilter($expected);
     // Assert
     $this->assertEquals($expected, $options->getFilter());
 }
 public function testCheckQueryTablesOptions()
 {
     $options = new QueryTablesOptions();
     $nextTableName = 'foo';
     $filter = new Filter();
     $this->assertNull($options->getNextTableName(), 'Default QueryTablesOptions->getNextTableName');
     $this->assertNotNull($options->getQuery(), 'Default QueryTablesOptions->getQuery');
     $options->setNextTableName($nextTableName);
     $options->setFilter($filter);
     $options->setTop(10);
     $this->assertEquals($nextTableName, $options->getNextTableName(), 'Set QueryTablesOptions->getNextTableName');
     $this->assertEquals($filter, $options->getFilter(), 'Set QueryTablesOptions->getFilter');
     $this->assertEquals($filter, $options->getQuery()->getFilter(), 'Set QueryTablesOptions->getQuery->getFilter');
     $this->assertEquals(10, $options->getTop(), 'Set QueryTablesOptions->getTop');
     $this->assertEquals(10, $options->getQuery()->getTop(), 'Set QueryTablesOptions->getQuery->getTop');
 }