assertEquals(EventType.BLIP_SUBMITTED, calledEvents.get(0));
assertEquals(EventType.DOCUMENT_CHANGED, calledEvents.get(1));
assertEquals(EventType.WAVELET_TAGS_CHANGED, calledEvents.get(2));
// Assert that the outgoing operation bundle contains robot.notify() op.
JsonParser jsonParser = new JsonParser();
JsonArray ops = jsonParser.parse(mockWriter.getString()).getAsJsonArray();
assertEquals(1, ops.size());
JsonObject op = ops.get(0).getAsJsonObject();
assertEquals(OperationType.ROBOT_NOTIFY_CAPABILITIES_HASH.method(),
op.get(RequestProperty.METHOD.key()).getAsString());