expectRequestAndResponse("/-1");
niceControl.replay();
GadgetSpec mockSpec = createMock(GadgetSpec.class);
JSONObject defaultGadgetJson = new JSONObject("{'foo':'bar'}");
expect(mockSpec.toJSON()).andReturn(defaultGadgetJson);
Map<String, GadgetSpec> tempSpecs = Maps.newConcurrentMap();
tempSpecs.put("-1", mockSpec);
Whitebox.setInternalState(servlet, "tempSpecs", tempSpecs);
replay(registry, mockSpec);