public class RequestReceiverTest extends TestCase {
public void testUrlParams() {
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");