This gives you WireMock patterns for testing REST API integrations without hitting real endpoints. Stub responses, verify request details like headers and query params, and simulate failures (timeouts, 500 errors, malformed JSON). It uses JUnit 5 extensions with dynamic ports to avoid conflicts in parallel test runs. The examples cover basic stubbing and verification, with references to advanced scenarios for body matching and stateful mocking. If you're writing services that call external APIs and want fast, deterministic tests that don't depend on network state or third-party availability, this is the standard approach. Just make sure you keep your stubs in sync with actual API contracts.
npx skills add https://github.com/giuseppe-trisciuoglio/developer-kit --skill unit-test-wiremock-rest-api