Desktop desktop = mock(Desktop.class);
WindowContentProducer viewFactory = mock(WindowContentProducer.class);
WorkspacePersistenceServiceAsync persistenceService = new TestWorkspacePersistenceServiceAsync();
ResourceSetFactory resourceSetFactory = mock(ResourceSetFactory.class);
WorkspaceSharingServiceAsync sharingService = mock(WorkspaceSharingServiceAsync.class);
PersistableRestorationService restorationService = mock(PersistableRestorationService.class);
persistenceManager = new DefaultWorkspacePersistenceManager(
workspaceManager, desktop, persistenceService, viewFactory,
resourceManager, resourceSetFactory, sharingService,