First of all, thank you for this post. It’s very informative and useful.
Alexandr Berdnikov

Yeah, it’s really frustrating, it’s true. Using apache commons or creating your utils class can be both solutions. Or if you use Kotlin, you can solve this problem with extension functions, I think… Personally, I use my “TextUtils” class.

It’s your decision: you can run JVM tests if you use one of these solutions, otherwise you have to run instrumented tests.