StyledText text = editor.getViewer().getTextWidget();
text.setCaretOffset(document.getLineOffset(line));
text.insert(" ");
long preEnd = System.currentTimeMillis();
text.notifyListeners(SWT.KeyDown, new Event());
long postEnd = System.currentTimeMillis();
// One data should be in the collection (the selected package declaration):
assertEquals(1, tracker.getData().size());