Matchers.equalTo(item.getSourceIdList()));
AsyncCallback<GetGlossaryDetailsResult> callback =
getGlossarycallbackCaptor.getValue();
// testing success callback
GlossaryDetails glossaryDetails = mock(GlossaryDetails.class);
when(glossaryDetails.getSource()).thenReturn("source text");
when(glossaryDetails.getTarget()).thenReturn("target text");
when(glossaryDetails.getSrcLocale()).thenReturn(new LocaleId("en-US"));
when(glossaryDetails.getTargetLocale()).thenReturn(new LocaleId("zh"));
when(glossaryDetails.getTarget()).thenReturn("source text");
when(display.getSrcRef()).thenReturn(srcRef);
when(display.getTargetText()).thenReturn(targetText);
when(display.getSourceLabel()).thenReturn(sourceLabel);
when(display.getTargetLabel()).thenReturn(targetLabel);
when(messages.entriesLabel(1)).thenReturn("1");