Developing your own method of stubbing REST calls in code is a neat way to get around dependencies on Mockito, WireMock, or other stubbing libraries, giving developers more control over their mocks, spies, and stubs for unit testing. Say you have a repository that makes a REST request using Spring’s…