ICategory[] categories = {Category.WORKSPACE, Category.COMMAND};
List<TreePath> expected = asList(
newPath(ws, command, count),
newPath(ws2, command2, count2));
ICommandData data2 = mock(ICommandData.class);
given(data2.get(ICommandData.DATE)).willReturn(date2);
given(data2.get(ICommandData.COUNT)).willReturn(count2);
given(data2.get(ICommandData.COMMAND)).willReturn(command2);
given(data2.get(ICommandData.WORKSPACE)).willReturn(ws2);
ICategoryProvider provider = mock(ICategoryProvider.class);
given(provider.getSelected()).willReturn(asList(categories));
ITreePathBuilder builder = create(provider);