### Question:
ServerActivator implements EventListener<ServerConfigEvent> { @Override public void notify(ServerConfigEvent event) { if (event.getEventAction() == ServerEventAction.LOADCOMPLETE && myActivationListener != null) { myActivationListener.activationComplete(event); } } ServerActivator(ServerSourceControllerManager serverSourceManager, EventManager eventManager,
            IActivationListener activationListener); void activateServers(Object object); void close(); @Override void notify(ServerConfigEvent event);  }### Answer:
@Test public void testNotifyServerConfigEvent() { ServerConfigEvent expectedEvent = new ServerConfigEvent(toString(), null, ServerEventAction.LOADCOMPLETE); ServerSourceControllerManager controllerManager = EasyMock.createNiceMock(ServerSourceControllerManager.class); IActivationListener activationListener = EasyMock.createNiceMock(IActivationListener.class); activationListener.activationComplete(EasyMock.eq(expectedEvent)); EventManager eventManager = createEventManager(); EasyMock.replay(eventManager, controllerManager, activationListener); ServerActivator activator = new ServerActivator(controllerManager, eventManager, activationListener); activator.notify(new ServerConfigEvent(toString(), null, ServerEventAction.ACTIVATE)); activator.notify(expectedEvent); EasyMock.verify(eventManager, controllerManager, activationListener); }