HProjectIteration version =
projectIterationDAO.getBySlug("same-project", "same-version");
assert version != null;
HDocument hDoc = version.getDocuments().get("/same/document0");
HTextFlow textFlow = hDoc.getTextFlows().get(0);
Optional<HTextFlowTarget> match =
service.searchBestMatchTransMemory(textFlow,
LocaleId.DE,
hDoc.getSourceLocaleId(), true, true,
true);
Assert.assertTrue(match.isPresent());
checkTargetContents(match.get(), "most recent content");
}