Mocking external resources sample