I\'m working a bit on an inherited code. I\'ve written a test that is supposed to catch NullPointerException (for it is trying to call a method from null object)
I ran across this thread while trying to fix the same issue in my tests.
In case others see this issue and end up here...In my case it was caused by not using the @PrepareForTest annotation for the support class.