Mocking java.time.Instant.now() in PlayFramework
It gets a bit tricky to make the production code clean while making it convenient to mock a static method in a multi-threaded setting since Java and Scala don't support "monkey-patching" like Ruby, Python, and Javascripts.
Mocking time is one of the mechanisms implemented inside PlayFast