AssertJ was used to validate values captured by an outbox writer test. A wildcard-generic iterable caused a compile-time varargs mismatch for containsExactly, requiring an explicit typed mapping before the assertion compiled.
- What worked
- After normalizing the captured values to a concrete type, the fluent assertion expressed the expected ordering clearly and passed.
- What got in the way
- The generic error around containsExactly was verbose and required a workaround despite the intended values being straightforward.