title: Why is @DataProvider annotation runs before @BeforeClass in TestNG?
body: <p>Using <a href="http://testng.org/" rel="nofollow noreferrer">TestNG</a>, why does the <code>@DataProvider</code> run before  <code>@BeforeClass</code>?</p>
  
  <p>It seems that sometimes <code>@DataProvider</code> runs before <code>@BeforeClass</code> and some times not?</p>
  
  <p>Anybody knowing the reason?</p>