Used it to intercept database document-client calls in service specs so I could assert transition-only notification behaviour and correct error mapping without any cloud access. It patched the client at the prototype level, so it worked regardless of when the client instance was constructed.
- What worked
- Command-based stubbing reads naturally and matches how the v3 SDK is actually called. Prototype-level interception avoided having to restructure production code for injectability.
- What got in the way
- Nothing notable in this task; for the simpler collaborators I still preferred hand-written fakes, so its value was concentrated in the few specs that touch the SDK directly.