Static initialization blocks - which is what you have beginning at lines 3 and 15 - are run when the class is loaded. So that's usually at the first point a reference is made to it. In this case, it will run before the main method does. The StaticTests class has to be loaded before any of its methods can be run, and that causes all its superclasses to be loaded as well.
I knew I would regret that burrito. But this tiny ad has never caused regrets:
The Low Tech Laboratory Movie Kickstarter is LIVE NOW!