title: BeforeTest would not run before every Test method of the class in <test> tag
body: <p>Inquiring further into <a href="https://stackoverflow.com/questions/4310964/testngs-beforetest-on-base-class-only-happening-once-per-fixture">SO-4310964</a> , I went through the description of annotations at <a href="http://testng.org/doc/documentation-main.html#annotations" rel="nofollow noreferrer">test.org</a>. </p>
  
  <blockquote>
    <p>@BeforeTest: The annotated method will be run before any test method
    belonging to the classes inside the <code>test</code> tag is run.</p>
  </blockquote>
  
  <p>Now what we have in our code is as follows : </p>
  
  <p><strong>MyTests.java</strong></p>
  
  <pre><code>public class MyTests {
      @BeforeTest
      public void preTest(){
          //Want to perform some action, suppose clear a Hashmap
          System.out.println("Before Test Called!");
      }
  
      @Test(groups = {"SanityTests"}, testName = "test1")
      public void Test1(){
              System.out.println("test1");
      }
  
      @Test(groups = {"SanityTests"}, testName = "test2")
      public void Test2(){
              System.out.println("test2");
      }
  }
  </code></pre>
  
  <p><strong>Sanity-Test.xml</strong></p>
  
  <pre><code>&lt;!DOCTYPE suite SYSTEM "http://testng.org/testng-1.0.dtd" &gt;
  
  &lt;suite name="SanityTests" verbose="1" &gt;
      &lt;listeners&gt;
          &lt;listener class-name="com.android.MyTestsListener" /&gt;
      &lt;/listeners&gt;
  
      &lt;test name="sanityAndroid"&gt;
          &lt;classes&gt;
              &lt;class name="com.android.MyTests" /&gt;
          &lt;/classes&gt;
      &lt;/test&gt;
  &lt;/suite&gt;
  </code></pre>
  
  <p>Note : I know that @BeforeMethod solves the problem. But to my understanding the link details that the @BeforeTest[<code>preTest</code>] method would run before any @Test[<code>test1</code>,<code>test2</code>] method which belong to the <code>class</code> inside the <code>&lt;test&gt;</code> tag. Where am I going wrong?</p>