activityService.logTextFlowStateUpdate(new TextFlowTargetStateEvent(
personId, versionId, documentId, null, new LocaleId("as"),
textFlowTargetId, ContentState.Translated,
ContentState.NeedReview));
Activity activity =
activityService.findActivity(personId,
EntityType.HProjectIteration, projectVersionId,
ActivityType.UPDATE_TRANSLATION, new Date());
assertThat(activity, not(nullValue()));
Long id = activity.getId();
activityService.logTextFlowStateUpdate(new TextFlowTargetStateEvent(
personId, versionId, documentId, null, new LocaleId("as"),
textFlowTargetId, ContentState.NeedReview, ContentState.New));
activity =
activityService.findActivity(personId,
EntityType.HProjectIteration, projectVersionId,
ActivityType.UPDATE_TRANSLATION, new Date());
assertThat(activity.getId(), equalTo(id));
}