protected RestClient newClient(){
  URI baseUri=URI.create(String.format("%s://%s:%s",protocol,host,port));
  return new RestClient(baseUri,this);
}

protected RestClient newClient ( ) { URI baseUri = URI . create ( String . format ( "%s://%s:%s" , protocol , host , port ) ) ; return new RestClient ( baseUri , this ) ; }
creates the restclient . this is provided here so testcases are able to override the base implementation .
