title: Does Junit reinitialize the class with each test method invocation?
body: <p>When i run the below code, both test cases come true:</p>
  
  <pre><code>import static junit.framework.Assert.assertEquals;
  
  import org.junit.Test;
  
  public class MyTest{
      private int count;
  
      @Before
      public void before(){
          count=1;
      }
  
      @Test
      public void test1(){
          count++;
          assertEquals(2, count); 
      }
  
      @Test
      public void test2(){
          count++;
          assertEquals(2, count); 
      }
  }
  </code></pre>
  
  <p><strong>EXPECTED BEHAVIOUR</strong></p>
  
  <ol>
  <li>test1 - success </li>
  <li>test2 - fail(as expected that count will become 3)</li>
  </ol>
  
  <p><strong>ACTUAL BEHAVIOUR</strong></p>
  
  <ol>
  <li>test1 - success</li>
  <li>test2 - success</li>
  </ol>
  
  <p>Why junit is <code>reinitializing class/variable</code> with each test method invocation.
  It is a bug in junit or is provided intentionally.</p>