Testing code that interacts with remote services is often pretty hard. There are a lot of tradeoffs that influence what…