Mocking (generic) functions.