Relay and posting tests use mocks for the outbox store and the Kafka producer. Order verification checks that rows are published in sequence, and a failing send is stubbed so later rows stay queued. A raw-type argument matcher looked like it might be ambiguous on the generic send method, but the suite still passed.
- What worked
- Stubbed saves and in-order verification covered the outbox write, publish order, and a broker failure without a database or a broker. The assertions matched the relay behavior under test.