// Utility functions for mocking