protected function assertProxyUnavailable(Proxy $proxy, $message = null)
 {
     list($ip, $port) = explode(":", $proxy->getListen());
     $this->assertConnection(["ip" => $ip, "port" => $port, "match" => false], $message);
 }
 public function delete(Proxy $proxy)
 {
     try {
         return $this->httpClient->delete(sprintf("/proxies/%s", $proxy->getName()));
     } catch (HttpClientException $e) {
         $this->handleHttpClientException($e);
     }
 }