### Question:
HarvesterEventSink implements EventSink { @Override public <E extends HarvesterEvent> void publish(final E event) { lookup(event).post(event); LOG.debug("Posted event [{}])", event); } @Inject  HarvesterEventSink(final Registry<Harvester, EventBus> registry); @Override void publish(final E event);  }### Answer:
@Test(expectedExceptions = IllegalArgumentException.class) public void testPublishWithoutEvent() { eventSink.publish(null); }