assertTrue("Expected exception not thrown", exceptionThrown);
public void test_addSelectionListenerLorg_eclipse_swt_events_SelectionListener() {	boolean exceptionThrown = false;	listenerCalled = false;	SelectionListener listener = new SelectionListener() {		public void widgetSelected(SelectionEvent event) {			listenerCalled = true;		}		public void widgetDefaultSelected(SelectionEvent event) {		}	};	try {		text.addSelectionListener(null);	}	catch (IllegalArgumentException e) {		exceptionThrown = true;	}	text.addSelectionListener(listener);	text.setText("12345");	text.setSelection(1,3);	assertTrue(":a:", listenerCalled == false);	text.removeSelectionListener(listener);	try {		text.removeSelectionListener(null);	}	catch (IllegalArgumentException e) {		exceptionThrown = true;	}}