RestAdapter adapter = new RestAdapter(Data.class, url, config);
Object restRunner = UnitTestUtils.getPrivateField(adapter, "restRunner");
List<Data> list = new ArrayList<Data>();
HeaderAndBody response = new HeaderAndBody("{\"pages\":{\"next\":\"chapter3\",\"previous\":\"chapter2\"}}".getBytes(), new HashMap<String, Object>());
JSONObject where = new JSONObject();
Method method = restRunner.getClass().getDeclaredMethod("computePagedList", List.class, HeaderAndBody.class, JSONObject.class, Pipe.class);
method.setAccessible(true);
WrappingPagedList<Data> pagedList = (WrappingPagedList<Data>) method.invoke(restRunner, list, response, where, adapter);