I have this component which integrates with other services through a RabbitMQ queue:
@Component
@ProcessingGroup("amqpProcessor")
public class ExternalEventsHandler {
@EventHandler
public void on(SomeOtherServiceEvent event) {
// Dispatches some command
}
}
How should I test this?
@Test
public void shouldReactToSomeOtherServiceEvent() {
//TODO
}