/** Visible for testing only */
URL getWebServiceUrl(WebServiceCallSpec callSpec, WebServiceRequest request, Gson gson) {
String baseUrl = buildBasePath(callSpec);
try {
String urlParamString = new UrlParamStringBuilder(gson)
.add(request.getUrlParameters())
.build();
return new URL(baseUrl + urlParamString);
} catch (MalformedURLException e) {
throw new WebServiceSystemException(e);