Trying out the sinon.js library (with node.js) for spies and stubs