This is a small library to make it a little easier to mock up functions and methods for unit tests: https://github.com/bytecurry/bytecurry.mocks