/**
  * Test if Endpoints can be created and listed
  */
 public function testCreateSecondEndpointForAllDatabasesGetListOfEndpointsAndDeleteItAgain()
 {
     $endpoint = 'tcp://127.0.0.1:8532';
     $databases = array();
     $response = Endpoint::create($this->connection, $endpoint, $databases);
     $this->assertTrue($response['error'] == false, 'result[\'error\'] Did not return false, instead returned: ' . print_r($response, 1));
     $response = Endpoint::listEndpoints($this->connection);
     $this->assertCount(2, $response);
     $response = Endpoint::delete($this->connection, $endpoint);
     $this->assertTrue($response['error'] == false, 'result[\'error\'] Did not return false, instead returned: ' . print_r($response, 1));
     $response = Endpoint::listEndpoints($this->connection);
     $this->assertCount(1, $response);
 }