Kotlin typing system is amazingly designed. It gives us very comfortable nullability support, type inference, universal guards, and much more.
Learn about new and powerful MockK features that let you improve your unit tests and mock whatever you need.
How to make a random instance of any class in #kotlin? Using a lot of reflection and a bit of hacking. Enjoy this step-by-step explanation by Marcin Moskala