BasicEventBroadcaster implements EventBroadcaster { @Override public void processEvent(Event event) { throw new UnsupportedOperationException("Use " + getClass().getSimpleName() + ".broadcastEvent instead."); } BasicEventBroadcaster(); @Override void addListener(Listener listener); @Override void addListener(Listener listener, Filter filter); @Override void broadcastEvent(Event event); @Override void removeListener(Listener listener); @Override void processEvent(Event event);  }
@Test(expectedExceptions = {UnsupportedOperationException.class}) public void testProcessMessage() { EventBroadcaster eb = new BasicEventBroadcaster(); eb.processEvent(null); }