title: Difference between BeforeClass and BeforeTest in TestNG
body: <p>As we know from official TestNG documentation:</p>
  
  <p><code>@BeforeClass:</code> The annotated method will be run before the first test method in the current class is invoked.</p>
  
  <p><code>@BeforeTest:</code> The annotated method will be run before any test method belonging to the classes inside the <code>&lt;test&gt;</code> tag is run.</p>
  
  <p>Both the above TestNG annotations look similar in functionality.  Can anyone explain the unique difference?</p>