parameters.put(ACTOR_PARAMETER, "Leela");
List<Activity> activities = activityStreamService.query(
UserActivityStreamFilter.ID, parameters);
assertEquals(5, activities.size());
Activity activity = activities.get(0);
assertEquals(benderActivityObject, activity.getActor());
assertEquals(DOCUMENT_REMOVED, activity.getVerb());
assertEquals("doc:default:docId1", activity.getObject());
activity = activities.get(1);
assertEquals(benderActivityObject, activity.getActor());
assertEquals(CIRCLE_RELATIONSHIP_KIND_GROUP, activity.getVerb());
assertEquals(zappActivityObject, activity.getObject());
activity = activities.get(2);
assertEquals(fryActivityObject, activity.getActor());
assertEquals(CIRCLE_RELATIONSHIP_KIND_GROUP, activity.getVerb());
assertEquals(benderActivityObject, activity.getObject());
}