Person person = TestFixture.person();
EditorClientId editorClientId = new EditorClientId("sessionId", 1);
WorkspaceId workspaceId = TestFixture.workspaceId();
when(translationWorkspaceManager.getOrRegisterWorkspace(workspaceId))
.thenReturn(translationWorkspace);
ExitWorkspaceAction action = new ExitWorkspaceAction(person);
action.setEditorClientId(editorClientId);
action.setWorkspaceId(workspaceId);
handler.execute(action, null);
verify(identity).checkLoggedIn();
verify(translationWorkspace).removeEditorClient(
action.getEditorClientId());
}