link to Mocking functions by Nate Finch