WorkspaceContext context =
new WorkspaceContext(action.getWorkspaceId(),
"Dummy Workspace", "Mock Sweedish");
WorkspaceRestrictions workspaceRestrictions =
new WorkspaceRestrictions(true, true, true, true, true);
UserWorkspaceContext userWorkspaceContext =
new UserWorkspaceContext(context, workspaceRestrictions);
userWorkspaceContext.setSelectedDoc(new DocumentInfo(new DocumentId(
new Long(1), "Dummy path/Dummy doc"), "Dummy doc",
"Dummy path", LocaleId.EN_US, null, new AuditInfo(new Date(),
"Translator"), new HashMap<String, String>(),
new AuditInfo(new Date(), "last translator")));