title: Java - @Before and @test annotation
body: <p>I am very new to Java programming. I have a unit test file to be run. It has annotations of <code>@Before</code> and <code>@Test</code>. I have tried to understand these concepts using available online resources.</p>
  
  <p>When I am debugging my UnitTest.java file, only the <code>@Before</code> part gets executed. It does not reach <code>@Test</code> and the program fails saying:</p>
  
  <pre>
  NativeMethodAccessorImpl.Object(....) not available.
  </pre>
  
  <p>This does not happen when I <em>run</em> the unit tests (as opposed to <em>debugging</em> the unit tests).
  How do I go about solving this?</p>