### Question:
SelectionEvent extends Event<SelectionChangedHandler> { @Override protected void dispatch(SelectionChangedHandler handler) { handler.onSelectionChanged(this); } SelectionEvent(Record record, boolean state, ListGridRecord[] selection, ListGridRecord selectedRecord); static Event.Type<SelectionChangedHandler> getType(); @Override Event.Type<SelectionChangedHandler> getAssociatedType(); Record getRecord(); boolean getState(); ListGridRecord[] getSelection(); ListGridRecord getSelectedRecord();  }### Answer:
@Test public void test_dispatchingEventToHandler() { final SelectionChangedHandler handler = mock(SelectionChangedHandler.class); selectionEvent.dispatch(handler); verify(handler).onSelectionChanged(selectionEvent); }