spy.exitWorkspace("admin");
verify(mockWorkspace).removeEditorClients("sessionId");
verify(mockWorkspace, times(2)).publish(eventCaptor.capture());
ExitWorkspace exitWorkspace1 = eventCaptor.getAllValues().get(0);
assertThat(exitWorkspace1.getEditorClientId(),
Matchers.equalTo(editorClientIds.get(0)));
assertThat(exitWorkspace1.getPerson().getName(),
Matchers.equalTo("<unknown>"));
verify(mockWorkspace).publish(exitWorkspace1);
ExitWorkspace exitWorkspace2 = eventCaptor.getAllValues().get(1);
assertThat(exitWorkspace2.getEditorClientId(),
Matchers.equalTo(editorClientIds.get(1)));
verify(mockWorkspace).publish(exitWorkspace2);
verify(gravatarServiceImpl, times(2)).getUserImageUrl(16, "<unknown>");
}