title: How to force the static block running in each test method?
body: <p>I found static block is running only once when I execute multiple JUnit tests. <strong>How can I force it to run for each test method?</strong> I am using latest JUnit 4.8.2</p>
  
  <p>Also, according to xUnit design principle, every method should be totally independent on others. Why static block only be executed once?</p>
  
  <pre><code>@Test TestMethod1 () {
         Accounts ac = new Accounts();
         ac.method1(); //kill the thread inside
  }
  
  @Test TestMethod2 () {
         Accounts ac = new Accounts();
         ac.method2(); // the thread is no longer available!!
  }
  
  class Accounts {
     static {
         // initalize one thread to monitor something
     }
  }
  </code></pre>
  
  <p>This even happens when <em>TestMethod1</em> and <em>TestMethod2</em> are in the different Test Classes. </p>