I have a final class, something like this:
public final class RainOnTrees{ public void startRain(){ // some code here } }
I
Use Powermock. This link shows, how to do it: https://github.com/jayway/powermock/wiki/MockFinal