title: DataProvider on TestNG
body: <p>I have tried to use @DataProvider with TestNG and arquillian, but I can't figure it out why it does not work when I use a class that I have created.</p>
  
  <p>If I use it with String, or any primitive datatypes my @Test method successfully receives the DataProvider populated objects.</p>
  
  <pre><code>@DataProvider(name="test")
  public Object[][] createdata1() {
      return new Object[] { {"test1"}, {"test2"}, {"test2"} };
  }
  </code></pre>
  
  <p>the above method works, but</p>
  
  <pre><code>@DataProvider(name="test")
  public Object[][] createdata1() {
      return new Object[] { {new User("test1")}, {new User("test2")}, {new User("test2")}};
  }
  </code></pre>
  
  <p>does not. This second method gives me null pointers only.</p>
  
  <p>Any ideas?</p>