Using mocking to avoid real API access