Extracted MockFunctions out of MockFactoryBase