Make mock a required dependency.