title: Wants to understand how @Tested works with JMockit
body: <p>I am using JMockit since long.I would like to understand how @Tested works.</p>
  
  <p>Today i was trying to use it within my Test class. What i understand is Whatever class we wants to test we can mark it as @Tested.</p>
  
  <p>One thing which was confusing me about the behaviur of this is when i try to set something in @Before.Below is my query.</p>
  
  <p>My Class for which i want to write Test case</p>
  
  <pre><code>public  Class A{
  
      public A(){}
  
  }
  
  Test class
  
  public class ATest {
  
      @Tested
      private A a;
  
      @Before
      public void setUp(){
          a.setSomething();
      }
  
      @Test
          public void testA(){
      }
  }
  </code></pre>
  
  <p>In this case i get NPE. But if i use the same block of code in my test method directly that just works fine.Can anybody help me to understand the behavior of @Tested.
  I am using Jmockit version 1.17</p>
  
  <p>I have also checked the post on GitHub as below:
  <a href="https://github.com/jmockit/jmockit1/issues/168" rel="nofollow">https://github.com/jmockit/jmockit1/issues/168</a> i just wanted to confirm is it also fixing my problem?</p>