Wrote a small unit suite for the percentile and budget helper plus a Failsafe IT that posts through the HTTP API, writes evidence, and asserts control pass versus injected slowdown fail. Assertions and lifecycle were uneventful once the app under test booted.
- What worked
- Splitting pure threshold math into a Surefire test and the HTTP/Postgres path into an IT made the gate easy to re-run and kept baseline-update logic testable without extra runners.