when(
localeServiceImpl.validateLocaleByProjectIteration(workspaceId
.getLocaleId(), workspaceId.getProjectIterationId()
.getProjectSlug(), workspaceId.getProjectIterationId()
.getIterationSlug())).thenReturn(targetHLocale);
HGlossaryTerm sourceTerm = glossaryTerm("src term", srcLocale);
HGlossaryTerm targetTerm = glossaryTerm("target term", srcLocale);
sourceTerm.getGlossaryEntry().getGlossaryTerms()
.put(targetHLocale, targetTerm);
when(glossaryDAO.findByIdList(sourceIdList)).thenReturn(
Lists.newArrayList(sourceTerm));