ITreeContentProvider contentProvider = mock(ITreeContentProvider.class);
given(contentProvider.getElements(any()))
.willReturn(new Object[]{bigger, smaller});
ILabelProvider labelProvider = new LabelProvider();
TreeViewer viewer = new TreeViewer(shell);
viewer.setContentProvider(contentProvider);
viewer.setLabelProvider(labelProvider);
TreeViewerColumnLabelSorter sorter = create(viewer, labelProvider);
assertThat(sorter.getSelectedColumn(), nullValue());
Tree tree = sorter.getViewer().getTree();
TreeColumn column = new TreeColumn(tree, SWT.NONE);
viewer.setInput("");
Event event = new Event();
event.widget = column;
SelectionEvent selectionEvent = new SelectionEvent(event);