@Test
public void testMetadataMultipleGadgetsWithFailure() throws Exception {
registerGadgetsHandler(null);
JSONObject request = makeMetadataRequest("en", "US", GADGET1_URL, GADGET2_URL);
processor.exceptions.put(FakeProcessor.SPEC_URL2, new ProcessingException("broken",
HttpServletResponse.SC_BAD_REQUEST));
RpcHandler operation = registry.getRpcHandler(request);
Object responseObj = operation.execute(emptyFormItems, token, converter).get();
JSONObject response = new JSONObject(converter.convertToString(responseObj));