/**
  * @param string $name
  *
  * @return bool
  * @throws Exception
  * @throws \Retrinko\UrlComposer\Exceptions\UrlException
  */
 public function closeConnection($name)
 {
     // Build URL: /nodes[?memory=true]
     $url = new UrlComposer($this->apiUrl);
     $url->addToPath('connections')->addToPath($name);
     // Build request
     $request = new JsonRequest($url->__toString(), RequestInterface::REQUEST_METHOD_DELETE);
     $request->setAuth($this->user, $this->pass);
     // Execute request
     $this->executeRequest($request);
     return true;
 }
 public function test_toString_withExceptions_returnsString()
 {
     $uc = new UrlComposer();
     $result = $uc->__toString();
     $this->assertTrue(is_string($result));
 }