title: Can I have multiple @BeforeMethod's that will run only for the groups they belong to?
body: <pre><code>@BeforeMethod (groups={"a"})
  public void setup1() {
      //do something
  }
  
  @BeforeMethod (groups={"b"})
  public void setup2() {
      //do something else
  }
  
  @Test (groups={"a"})
  public void Test1() {
      //do something
  }
  
  @Test (groups={"b"})
  public void Test2() {
      //do something
  }
  
  @Test (groups={"a"})
  public void Test3() {
      //do something
  }
  
  @Test (groups={"b"})
  public void Test4() {
      //do something
  }
  </code></pre>
  
  <p>while the xml file would be something like:</p>
  
  <pre><code>&lt;run&gt;
      &lt;include name="a"/&gt;
      &lt;include name="b"/&gt;
  &lt;/run&gt;
  </code></pre>
  
  <p>Is it possible to have only setup1 run before Test1, Test3 while only setup2 runs before Test2, Test4?</p>