title: TestNG parallel DataProvider
body: <p>I'd like to run test methods in a class parallely with data provider.
  I would need a data provider that gets called every time before a new test method starts to generate partly dynamic data for the given test run. Let me explain it in pseudo code:</p>
  
  <pre><code>@DataProvider(parallel=true)
  public Object[][] dp(){
    User user = createNewUser();
    return new Object[][]{
              {"s1", new AExtendsOtherObject(user), user},
              {"s2", new BExtendsOtherObject("any"), user},
  }
  
  @Test(dataProvider = "dp")
  void test(String s, OtherObject o, User user){
  }
  
  &lt;suite name="all" verbose="1" parallel="methods" data-provider-thread-count="5"&gt;
  </code></pre>
  
  <p>How could I achieve this?</p>