private final List<EventType> calledEvents = new ArrayList<EventType>();
public void testSubmit() throws Exception {
HttpFetcher fetcher = mock(HttpFetcher.class);
when(fetcher.send(contains("http://gmodules.com/api/rpc"),
eq(AbstractRobot.JSON_MIME_TYPE),
contains("wave.robot.notifyCapabilitiesHash")))
.thenReturn("[{\"id\":\"op1\",\"data\":{}}]");
AbstractRobot robot = new MockRobot(fetcher);