@Test
public void testGetAllPersonActivities() throws Exception {
Long documentId2 = new Long(2L);
activityService.logTextFlowStateUpdate(new TextFlowTargetStateEvent(
personId, versionId, documentId2, null, LocaleId.EN_US,
new Long(5), ContentState.Translated, ContentState.NeedReview));
activityService.logTextFlowStateUpdate(new TextFlowTargetStateEvent(
personId, versionId, documentId2, null, LocaleId.EN_US,
new Long(5), ContentState.Approved, ContentState.NeedReview));
activityService.logTextFlowStateUpdate(new TextFlowTargetStateEvent(
personId, versionId, documentId2, null, LocaleId.EN_US,
new Long(6), ContentState.Rejected, ContentState.Translated));
activityService.logTextFlowStateUpdate(new TextFlowTargetStateEvent(
personId, versionId, documentId2, null, LocaleId.EN_US,
new Long(6), ContentState.NeedReview, ContentState.New));
List<Activity> activities =
activityService.findLatestActivitiesForContext(personId,