// Given: already have submitted request
GetTranslationMemory submittedRequest =
mock(GetTranslationMemory.class);
presenter.setStatesForTesting(null, submittedRequest);
LocaleId localeId = new LocaleId("zh");
ProjectIterationId projectIterationId =
new ProjectIterationId("project", "master", ProjectType.Podir);
when(userWorkspaceContext.getWorkspaceContext()).thenReturn(
new WorkspaceContext(new WorkspaceId(projectIterationId,
localeId), "workspaceName", localeId.getId()));
when(userWorkspaceContext.getSelectedDoc()).thenReturn(
new DocumentInfo(new DocumentId(new Long(1), ""), "doc.txt",