title: TestNG - Running same class with multiple threads in parallel
body: <p>Is there a way to run same class in parallel with multiple threads, like</p>
  
  <pre><code>&lt;suite name="myTestSuite" verbose="1"&gt;
      &lt;test name="myTest" parallel="classes" thread-count="5"&gt;
          &lt;classes&gt;
              &lt;class name="myPackage.Test" /&gt;
          &lt;/classes&gt;
      &lt;/test&gt;
  &lt;/suite&gt;
  </code></pre>
  
  <p>I want to the class 'myPackage.Test' to be invoked in 5 parallel threads.I know that it works if I want to executed different classes in parallel, like </p>
  
  <pre><code>&lt;suite name="myTestSuite" verbose="1"&gt;
      &lt;test name="myTest" parallel="classes" thread-count="5"&gt;
          &lt;classes&gt;
              &lt;class name="myPackage.Test1" /&gt;
              &lt;class name="myPackage.Test2" /&gt;
              &lt;class name="myPackage.Test3" /&gt;
              &lt;class name="myPackage.Test4" /&gt;
              &lt;class name="myPackage.Test5" /&gt;
          &lt;/classes&gt;
      &lt;/test&gt;
  &lt;/suite&gt;
  </code></pre>