DomesticEventPublisher implements EventDispatcher, Logging { @Override public ImmutableSet<EventClass> externalEventClasses() { return ImmutableSet.of(); } DomesticEventPublisher(IntegrationBroker broker, EventClass messageClass); @Override ImmutableSet<EventClass> messageClasses(); @Override void dispatch(EventEnvelope event); @Override ImmutableSet<EventClass> domesticEventClasses(); @Override ImmutableSet<EventClass> externalEventClasses(); @Override boolean equals(Object o); @Override int hashCode();  }
@Test @DisplayName("dispatch no external events") void dispatchNoExternalEvents() { DomesticEventPublisher publisher = new DomesticEventPublisher(broker, TARGET_EVENT_CLASS); Set<EventClass> classes = publisher.externalEventClasses(); assertThat(classes).isEmpty(); }