@Test
public void shouldOrderTreesAlphabetically() {
// given
CommonViewer viewer = mock(CommonViewer.class);
GitChangeSetSorter sorter = new GitChangeSetSorter();
GitModelTree tree1 = mock(GitModelTree.class);
GitModelTree tree2 = mock(GitModelTree.class);
ILabelProvider labelProvider = mock(ILabelProvider.class);
when(labelProvider.getText(tree1)).thenReturn("aaa");
when(labelProvider.getText(tree2)).thenReturn("zzz");
when(viewer.getLabelProvider()).thenReturn(labelProvider);