EventChannel { void addEventListener(EventListener<T> eventListener) { notNull(eventListener, "Can not add null event listener"); listeners.add(eventListener); } EventChannel();   }
@Test(groups = SMALL, expectedExceptions = IllegalArgumentException.class) public void testCanNotAddNullEventListener() { channel.addEventListener(null); }