Testing Mox for Elixir: Mocking and Dependency Injection in Tests Testing code that calls external services — payment processors, email providers, third-party APIs — presents a challenge.