provides examples that use the sinon mocking libarary