I have a final class, something like this:
public final class RainOnTrees{ public void startRain(){ // some code here } }
I
If you trying to run unit-test under the test folder, the top solution is fine. Just follow it adding an extension.
But if you want to run it with android related class like context or activity which is under androidtest folder, the answer is for you.