HeaderMapSpec headersSpec = new HeaderMapSpec.Builder().build();
UrlParamsSpec urlParamSpec = new UrlParamsSpec.Builder().put("foo", String.class).build();
RequestBodySpec bodySpec = new RequestBodySpec.Builder().build();
RequestSpec spec = new RequestSpec(headersSpec, urlParamSpec, bodySpec);
RequestReceiver receiver = new RequestReceiver(new GsonBuilder(), spec);
HttpServletRequest req = new HttpServletRequestFake()
.setRequestMethod("GET")
.setUrlParam("foo", "bar");
WebServiceRequest request = receiver.receive(req);
assertEquals("bar", request.getUrlParameters().getParamsMap().get("foo"));
}