assertThat(newComment.getTargetVersion()).isEqualTo(
newTarget.getVersionNum());
for (Map.Entry<Integer, HTextFlowTargetHistory> entry : existingTarget
.getHistory().entrySet()) {
HTextFlowTargetHistory existingHistory = entry.getValue();
HTextFlowTargetHistory newHistory =
newTarget.getHistory().get(entry.getKey());
assertThat(newHistory.getTextFlowTarget()).isEqualTo(newTarget);
assertThat(newHistory.getContents()).isEqualTo(
existingHistory.getContents());
assertThat(newHistory.getLastModifiedBy()).isEqualTo(
existingHistory.getLastModifiedBy());
assertThat(newHistory.getTextFlowRevision()).isEqualTo(
existingHistory.getTextFlowRevision());
assertThat(newHistory.getState()).isEqualTo(
existingHistory.getState());
assertThat(newHistory.getVersionNum()).isEqualTo(
existingHistory.getVersionNum());
}
}