Elixir Testing Patterns: Mocking with Mox (Part 4)

Master compile-time safe mocking with Mox: define contracts with @callback, swap implementations seamlessly, and verify interactions with expect/3 and stub/3.