### Question:
DefaultHarvest implements Harvest { @Override public void addEventHandler(final EventHandler<?> handler) { handlerHolder.register(handler); } @Inject  DefaultHarvest(final ConfigFactory configFactory,
            final HarvesterFactory harvestFactory,
            final HandlerHolder handlerHolder, final EventSink eventSink); @Override Harvester getHarvester(final ConfigSource source,
            final HarvestLoadCallback callback); @Override void addEventHandler(final EventHandler<?> handler); @Override void postEvent(final E event);  }### Answer:
@Test public void testAddEventHandler() { final EventHandler<HarvesterEvent> handler = new EventHandler<HarvesterEvent>() { @Override public void handle(final HarvesterEvent event) { } }; mockHandlerHolder.register(handler); expectLastCall(); EasyMockUnitils.replay(); harvest.addEventHandler(handler); }