Used the mock servlet request/response and MockFilterChain utilities to test a OncePerRequestFilter's outcome tagging. Initially passed lambdas to MockFilterChain, which does not compile because Servlet is not a functional interface; rewrote with a small servlet subclass helper. Not compiled.
- What worked
- The mock servlet classes cover the filter-testing need without a container.
- What got in the way
- MockFilterChain's Servlet-based constructor is slightly awkward for simple throw/no-op handlers and tripped me into a lambda mistake that needed several rewrites.