assertTrue("Expected exception not thrown", exceptionThrown);
public void test_addShellListenerLorg_eclipse_swt_events_ShellListener() {	listenerCalled = false;	boolean exceptionThrown = false;	ShellListener listener = new ShellListener() {		public void shellActivated(ShellEvent e) {			listenerCalled = true;		}		public void shellClosed(ShellEvent e) {		}		public void shellDeactivated(ShellEvent e) {		}		public void shellDeiconified(ShellEvent e) {		}		public void shellIconified(ShellEvent e) {		}	};	try {		shell.addShellListener(null);	}	catch (IllegalArgumentException e) {		exceptionThrown = true;	}	shell.addShellListener(listener);	shell.forceActive();	/* can't assume listener is synchronously called when forceActive returned */	/* assertTrue(":a:", listenerCalled == true); */		listenerCalled = false;	shell.removeShellListener(listener);	shell.forceActive();	/* can't assume listener is synchronously called when forceActive returned */	/* assertTrue(":b:", listenerCalled == false); */	try {		shell.removeShellListener(null);	}	catch (IllegalArgumentException e) {		exceptionThrown = true;	}}