I have some methods in my app that make http requests. Is there a good way to simulate network failures and bad responses for the unit tests?
Maybe Spring test mocks would be of some assistance.