title: Groups not working with include tag in TestNg
body: <p>I want to distinguish test API in to 2 groups and run any one group in the testng xml based on the requirement. </p>
  
  <p>But the method mentioned in the include tag always gets executed irrespective of the Groups. Is there any way i can achieve this functionality in TestNg, since i cant avoid the include tag.</p>
  
  <p>My Test class and the corresponding xml is as follows;</p>
  
  <pre><code>package com.eci.raft.tests.shadetree;
  
  import java.io.IOException;
  
  import org.testng.annotations.Test;
  
  public class TestClass {
  
      @Test(groups= {"WithOuthardware","Withhardware"})
      public void configureApi() {
          System.out.println("Configure");
      }
  
      @Test(groups= {"Withhardware"})
      public void validateApi() throws IOException {
          System.out.println("Validate");
          throw new IOException();
      }
  
  }
  </code></pre>
  
  <p>TestNg.xml</p>
  
  <pre><code>&lt;!DOCTYPE suite SYSTEM "http://testng.org/testng-1.0.dtd"&gt;
  &lt;suite name="SuiteTest"&gt;
      &lt;groups&gt;
          &lt;run&gt;
              &lt;include name="WithOuthardware"&gt;&lt;/include&gt;
          &lt;/run&gt;
      &lt;/groups&gt;
      &lt;test name="Test1" &gt;
          &lt;classes&gt;
              &lt;class name="com.eci.raft.tests.shadetree.TestClass"&gt;
                  &lt;methods&gt;
                      &lt;include name="validateApi"&gt;&lt;/include&gt;
                  &lt;/methods&gt;
              &lt;/class&gt;
          &lt;/classes&gt;
      &lt;/test&gt;
  
      &lt;test name="Test2"&gt;
          &lt;classes&gt;
              &lt;class name="com.eci.raft.tests.shadetree.TestClass"&gt;
              &lt;/class&gt;
          &lt;/classes&gt;
      &lt;/test&gt;
  &lt;/suite&gt;
  </code></pre>
  
  <p>Here "validateApi" in the "Test1" gets executed even though it is not tagged with "WithOuthardware" group name.</p>
  
  <p>Thanks and regards,</p>
  
  <p>Venkatesh Ganesan</p>