Templated mocking helpers