### Question:
LocalEventPublisher implements AxonServerEventPublisher { @Override public void publishEvent(@Nonnull Object event) { this.eventPublisher.publishEvent(event); } LocalEventPublisher(@Qualifier("applicationEventPublisher") ApplicationEventPublisher eventPublisher); @Override void publishEvent(@Nonnull Object event);  }### Answer:
@Test public void publishEvent() { Object event = new Object(); verify(listener, times(0)).on(event); testSubject.publishEvent(event); verify(listener, times(1)).on(event); }