JSONObject request = new JSONObject("{method:http.post, id:req1, params : {"
+ "href:'http://www.example.org/somecontent',"
+ "body:'POSTBODY',"
+ "headers:{goodheader:[good], host : [iamstripped], 'Content-Length':['1000']}"
+ "}}");
HttpRequest httpRequest = new HttpRequest(Uri.parse("http://www.example.org/somecontent"));
httpRequest.setMethod("POST");
httpRequest.setPostBody("POSTBODY".getBytes());
httpRequest.setHeader("goodheader", "good");
httpRequest.setHeader("Content-Length", "1000");
expect(pipeline.execute(eqRequest(httpRequest))).andReturn(builder.create()).anyTimes();
replay();
RpcHandler operation = registry.getRpcHandler(request);