ICategory[] categories = {Category.WORKSPACE, Category.WORKBENCH_TOOL};
List<TreePath> expected = asList(
newPath(ws, view, duration),
newPath(ws2, editor, duration2));
IPartData data2 = mock(IPartData.class);
given(data2.get(IPartData.DATE)).willReturn(date2);
given(data2.get(IPartData.DURATION)).willReturn(duration2);
given(data2.get(IPartData.PART_ID)).willReturn(editor.getId());
given(data2.get(IPartData.WORKSPACE)).willReturn(ws2);
ICategoryProvider provider = mock(ICategoryProvider.class);
given(provider.getSelected()).willReturn(asList(categories));
ITreePathBuilder builder = create(provider);