/**
  * @test
  * @expectedException InvalidArgumentException
  */
 public function it_sqawlks_when_validating_an_url_with_something_other_than_a_url()
 {
     $this->validator->validateUrlProperty("url", "this.is.not.an/url");
 }
 /**
  * Builds the url from the known variables of the client & and the passed in id.
  *
  * @param string $format
  * @param int    $id
  *
  * @return string
  */
 private function buildUrl($format, $id)
 {
     $this->validator->validateIntegerProperty('Id', $id);
     $company = urlencode($this->client->get('config')['connectwise']['company']);
     return sprintf($format, $this->client->getHost(), $id, $company);
 }