.getSelectedId(), Matchers.sameInstance(transUnit.getId()));
}
@Test
public void onEnterWorkspace() {
EnterWorkspaceEvent event = mock(EnterWorkspaceEvent.class);
EditorClientId editorClientId = editorClientId();
Person person = TestFixture.person();
when(event.getEditorClientId()).thenReturn(editorClientId);
when(event.getPerson()).thenReturn(person);
when(workspaceUsersPresenter.addNewUser(person)).thenReturn(panel);
when(distinctColor.getOrCreateColor(editorClientId)).thenReturn("red");
service.onEnterWorkspace(event);