private final List<EventType> calledEvents = new ArrayList<EventType>();
public void testSubmit() throws Exception {
HttpFetcher fetcher = mock(HttpFetcher.class);
when(fetcher.execute(any(HttpMessage.class), anyMapOf(String.class, Object.class)))
.thenReturn(new HttpResponse("POST", new URL("http://foo.google.com"), 0,
new ByteArrayInputStream("[{\"id\":\"op1\",\"data\":{}}]".getBytes())));
MockRobot robot = new MockRobot();
robot.setupOAuth("consumerKey", "consumerSecret", "http://gmodules.com/api/rpc");