@Test
public void testExitWorkspaceWithNullAccount() throws Exception {
HProjectIteration projectIteration =
makeHProjectIteration("project", "master");
WorkspaceId workspaceId = TestFixture.workspaceId(LocaleId.DE);
when(
projectIterationDAO.getBySlug(workspaceId
.getProjectIterationId().getProjectSlug(), workspaceId
.getProjectIterationId().getIterationSlug()))
.thenReturn(projectIteration);
HLocale hLocale = new HLocale(LocaleId.DE);
hLocale.setActive(true);
when(localeServiceImpl.getByLocaleId(workspaceId.getLocaleId()))
.thenReturn(hLocale);
TranslationWorkspaceManagerImpl spy = spy(manager);
doReturn(mockWorkspace).when(spy).createWorkspace(workspaceId);
doReturn("sessionId").when(spy).getSessionId();
ArrayList<EditorClientId> editorClientIds =