sourceTerm.getGlossaryEntry().getGlossaryTerms()
.put(targetHLocale, targetTerm);
when(glossaryDAO.findByIdList(sourceIdList)).thenReturn(
Lists.newArrayList(sourceTerm));
GetGlossaryDetailsResult result = handler.execute(action, null);
verify(identity).checkLoggedIn();
assertThat(result.getGlossaryDetails(), Matchers.hasSize(1));
assertThat(result.getGlossaryDetails().get(0).getTarget(),
Matchers.equalTo("target term"));
}