public void testOneParam() {
UrlParamsSpec spec = new UrlParamsSpec.Builder().put("foo", String.class).build();
UrlParams urlParameters = new UrlParams.Builder(spec)
.put("foo", "bar bar").build();
String urlParamsString = urlParamBuilder.add(urlParameters).build();
UrlParamsExtractor extractor = new UrlParamsExtractor(spec, gson);
HttpServletRequestFake request = new HttpServletRequestFake()
.setRequestMethod("GET")
.setUrlParams(urlParamsString);
UrlParams urlParams = extractor.extractUrlParams(request);
assertEquals("bar bar", urlParams.getParamsMap().get("foo"));
}