/**
* Verify that social preloads where the request doesn't contain a token
* serve up 403s for the preloaded data, instead of failing the whole request.
*/
public void testSocialPreloadWithoutToken() throws Exception {
GadgetSpec spec = new GadgetSpec(GADGET_URL, XML);
RecordingRequestPipeline pipeline = new RecordingRequestPipeline("");
PipelinedDataPreloader preloader = new PipelinedDataPreloader(pipeline, containerConfig);
view = "profile";
// But don't set the security token
Gadget gadget = new Gadget()
.setContext(context)
.setSpec(spec)
.setCurrentView(spec.getView("profile"));
PipelinedData.Batch batch = getBatch(gadget);
Collection<Callable<PreloadedData>> tasks = preloader.createPreloadTasks(
context, batch);
PreloadedData data = tasks.iterator().next().call();
JSONObject resultWithKeyA = new JSONObject(