I have a final class, something like this:
public final class RainOnTrees{ public void startRain(){ // some code here } }
I
I had the same problem. Since the class I was trying to mock was a simple class, I simply created an instance of it and returned that.