}
@Test
public void testNewReviewActivityUpdated() throws Exception {
activityService.logTextFlowStateUpdate(new TextFlowTargetStateEvent(
personId, versionId, documentId, null, new LocaleId("as"),
textFlowTargetId, ContentState.Approved,
ContentState.NeedReview));
List<Activity> activities =
activityService.findLatestActivitiesForContext(personId,
projectVersionId, 0, 10);
assertThat(activities.size(), equalTo(1));
activityService.logTextFlowStateUpdate(new TextFlowTargetStateEvent(
personId, versionId, documentId, null, new LocaleId("as"),
textFlowTargetId, ContentState.Rejected,
ContentState.NeedReview));
activities =
activityService.findLatestActivitiesForContext(personId,