Problem: If you are launching JUnit test and returns next error:
java.lang.NullPointerException: Cannot invoke "[Ljava.lang.Class;.clone()" because " .parameterTypes" is nullSolution: The problem is that you are mocking a java.lang.* object.
Explanation: Mockito is based on java.lang.* so you can’t mock it.
For more interesting tutorials & guides just check them HERE.

I don’t even know how I ended up here, but I thought this
post was great. I do not know who you are but certainly you’re going to a famous blogger if you aren’t already 😉 Cheers!