assertThat(userPanel.getSelectedId(), Matchers.nullValue());
}
@Test
public void onExitWorkspace() {
ExitWorkspaceEvent event = mock(ExitWorkspaceEvent.class);
EditorClientId editorClientId = editorClientId();
Person person = TestFixture.person();
when(event.getEditorClientId()).thenReturn(editorClientId);
when(event.getPerson()).thenReturn(person);
UserPanelSessionItem sessionItem =
new UserPanelSessionItem(panel, person);
TransUnit selectedTransUnit = TestFixture.makeTransUnit(1);
sessionItem.setSelectedId(selectedTransUnit.getId());
service.getUserSessionMap().put(editorClientId, sessionItem);