Problem: If you are launching JUnit test and returns next error:
java.lang.NullPointerException: Cannot invoke "[Ljava.lang.Class;.clone()" because " .parameterTypes" is null
Solution: 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.