}
@Test
public void testUpdateEditorTranslatorsWithConcurrentEdit() {
// Given: user in session map has selected same trans unit
EditorClientId editorClientId = new EditorClientId("sessionId", 1);
Map<EditorClientId, UserPanelSessionItem> sessionMap =
ImmutableMap.<EditorClientId, UserPanelSessionItem> builder()
.put(editorClientId, panelSessionItem).build();
when(sessionService.getUserSessionMap()).thenReturn(sessionMap);
when(sessionService.getColor(editorClientId)).thenReturn("red");
when(panelSessionItem.getSelectedId()).thenReturn(
TestFixture.makeTransUnit(1).getId());
Person person = TestFixture.person();
when(panelSessionItem.getPerson()).thenReturn(person);
EditorClientId ourClientId = new EditorClientId("another client id", 2);
when(identity.getEditorClientId()).thenReturn(ourClientId);
// When:
editorTranslators.updateTranslator(display, new TransUnitId(1));