verify(identity).checkLoggedIn();
verify(translationWorkspace).updateUserSelection(editorClientId,
selectedTransUnit.getId());
verify(translationWorkspace).publish(eventCaptor.capture());
TransUnitEdit transUnitEdit = eventCaptor.getValue();
assertThat(transUnitEdit.getEditorClientId(),
Matchers.sameInstance(editorClientId));
assertThat(transUnitEdit.getPerson(), Matchers.sameInstance(person));
assertThat(transUnitEdit.getSelectedTransUnitId(),
Matchers.sameInstance(selectedTransUnit.getId()));
}