1 package test.tmp; 2 3 import org.testng.annotations.Test; 4 5 @Test 6 public class StaticInitializerTest { 7 8 static { foo()9 foo(); 10 } 11 testMe()12 public void testMe() { 13 System.err.println("**** testMe ****"); 14 } 15 foo()16 private static void foo() { 17 throw new RuntimeException("FAILING"); 18 } 19 }