JSONObject params = new JSONObject();
root.put("params", params);
params.put("param1", new JSONString("value1"));
ApiService service = RpcApiService.Helper.fromString("{}");
RpcApiRequest request = new RpcApiRequest(service, mockMethod);
request.setBody(root);
ListMultimap<String, String> paramValues = request.getParamValues();
assertEquals(Sets.newHashSet("param1"), paramValues.keySet());
assertEquals(ImmutableList.of("\"value1\""), paramValues.get("param1"));
assertEquals(root.toString(), request.getRequestBody());
}