setupGadget(getGadgetXml(contentWithDataRequest));
Map<PipelinedData, ? extends Object> pipelines =
rewriter.parsePipelinedData(gadget, content.getDocument());
assertEquals(1, pipelines.size());
PipelinedData pipeline = pipelines.keySet().iterator().next();
PipelinedData.Batch batch = pipeline.getBatch(Expressions.forTesting(), new RootELResolver());
Map<String, Object> preloads = batch.getSocialPreloads();
JsonAssert.assertObjectEquals(
"{me: {params: {userId: 'canonical'}, method: 'people.get', id: 'me'}}",
preloads);