when(accountDAO.getByUsername(person.getId().toString())).thenReturn(
createHAccount("admin@redhat.com", "pahuang"));
when(gravatarServiceImpl.getUserImageUrl(16, "admin@redhat.com"))
.thenReturn("gravatarUrl");
GetTranslatorListResult result = handler.execute(action, null);
verify(identity).checkLoggedIn();
assertThat(result.getSize(), Matchers.equalTo(1));
Map<EditorClientId, PersonSessionDetails> translatorList =
result.getTranslatorList();
assertThat(translatorList, Matchers.hasKey(editorClientId));
assertThat(translatorList.get(editorClientId).getPerson()
.getAvatarUrl(), Matchers.equalTo("gravatarUrl"));
assertThat(translatorList.get(editorClientId).getPerson().getName(),
Matchers.equalTo("pahuang"));