public void testExecuteWhenTargetTermVersionNotMatch() throws Exception {
GlossaryDetails selectedDetailEntry =
new GlossaryDetails("source", "target", null, null,
"sourceRef", srcLocale.getLocaleId(),
targetHLocale.getLocaleId(), 0, new Date());
UpdateGlossaryTermAction action =
new UpdateGlossaryTermAction(selectedDetailEntry, "new target",
Lists.newArrayList("new comment"));
when(
glossaryDAO.getEntryBySrcLocaleAndContent(
selectedDetailEntry.getSrcLocale(),
selectedDetailEntry.getSource())).thenReturn(