Faking HTTP Services with WireMock
Learn Faking HTTP Services with WireMock (Testing in Practice, JUnit 5 & Mockito) with worked examples, diagrams and interview questions. Free on JavaSchoolLab.
To test code that calls another service, run a fake HTTP server instead of mocking your client class.