/**
  * Try to create a collection with keyOptions and then retrieve it to confirm.
  */
 public function testCreateCollectionWithKeyOptionsCluster()
 {
     if (!isCluster($this->connection)) {
         // don't execute this test in a non-cluster
         return;
     }
     $connection = $this->connection;
     $collection = new Collection();
     $collectionHandler = new CollectionHandler($connection);
     $name = 'ArangoDB_PHP_TestSuite_TestCollection_01';
     try {
         $collectionHandler->drop($name);
     } catch (Exception $e) {
         //Silence the exception
     }
     $collection->setName($name);
     $collection->setKeyOptions(array("type" => "autoincrement", "allowUserKeys" => false, "increment" => 5, "offset" => 10));
     try {
         $response = $collectionHandler->add($collection);
     } catch (\Exception $e) {
     }
     $this->assertEquals($e->getCode(), 501);
 }