title: TestNG one test for two classes
body: <p>I have TestNG tests in some classes, which extends the same main class. 
  I need the same last test for class1 and class2, but if I add <code>@Test(priority = 666)</code> to main class it start after all classes.
  How I should annotate <code>@Test</code> in main class what would it starts after all tests of each class?</p>
  
  <p>Big thanks. Also sorry for bad english.</p>
  
  <p>main class</p>
  
  <pre><code>    public class MainTest {
  
      @BeforeClass()
      public void setup() {
      //something 
      }
  
      @AfterClass()
      public void tearDown() {
      //something
      }
  
      @AfterMethod()
      public void log_writer(Method method) {
      //something
             }
  
      @Test(priority = 666) {}
      }
  </code></pre>
  
  <p>class1</p>
  
  <pre><code>    public class Class1 extends MainTest {
  
      @Test
      public void test1(){}
  
      @Test
      public void test2(){}  
  
      }
  </code></pre>
  
  <p>and class2</p>
  
  <pre><code>    public class Class2 extends MainTest {
  
      @Test
      public void test1(){}
  
      @Test
      public void test2(){}  
      }
  </code></pre>