Ignore warning when creating a mock