}
}
for (Map.Entry<HLocale, HPoTargetHeader> entry : newDoc
.getPoTargetHeaders().entrySet()) {
HPoTargetHeader oldTargetHeader =
existingDoc.getPoTargetHeaders().get(
entry.getValue().getTargetLanguage());
assertThat(entry.getValue().getEntries()).isEqualTo(
oldTargetHeader.getEntries());
assertThat(entry.getValue().getTargetLanguage()).isEqualTo(
oldTargetHeader.getTargetLanguage());
assertThat(entry.getValue().getDocument()).isEqualTo(newDoc);
if (entry.getValue().getComment() != null) {
assertThat(entry.getValue().getComment().getId()).isNotEqualTo(
oldTargetHeader.getComment().getId());
assertThat(entry.getValue().getComment().getComment())
.isEqualTo(oldTargetHeader.getComment().getComment());
}
}
}