### Question:
ServerConfigEventHandler implements EventListener<ServerConfigEvent> { @Override public void notify(ServerConfigEvent event) { if (event.getEventAction() == ServerEventAction.ACTIVATE) { handleActivate(event); } } ServerConfigEventHandler(EventManager eventManager, ServerProvider<HttpServer> provider); @Override void notify(ServerConfigEvent event); void close();  }### Answer:
@Test public void test() throws MalformedURLException { EasyMockSupport support = new EasyMockSupport(); EventManager eventManager = createEventManager(support); ServerProvider<HttpServer> provider = createServerProvider(support); ServerConfigEvent event = createEvent(support, ServerEventAction.ACTIVATE); ServerConfigEvent nonActivateEvent = createEvent(support, ServerEventAction.LOADCOMPLETE); support.replayAll(); ServerConfigEventHandler handler = new ServerConfigEventHandler(eventManager, provider); handler.notify(event); handler.notify(nonActivateEvent); support.verifyAll(); }