Mocking is not elegant itself, though. Kotlin, on the other hand, can make anything look elegant.
A modern approach to domain modeling using hypermedia as a state of application.
The authentication system is designed by myself while working on a project called Spherium. The project itself is not published though, I put it there as a state-of-the-art experience log, showing that kind of thing is extremely doable in Phoenix, and Elixir.