when(workspaceManager.getWorkspace()).thenReturn(workspace);
when(window.getViewContent()).thenReturn(windowContent);
when(windowContent.getContentType()).thenReturn(CONTENT_TYPE);
when(viewFactory.createWindowContent(CONTENT_TYPE)).thenReturn(
new ViewWindowContent(restoredView));
windows = new ArrayList<WindowPanel>();
windows.add(window);
when(desktop.getWindows()).thenReturn(windows);
}