title: @DataProvider with return type as Iterator<Object[]>
body: <p>I try to execute the simple test case which call dataProvider and this dataProvider has return type as <code>Iterator&lt;Object[]&gt;</code>, I know this return type is not accept by <code>@DataProvider</code> method but after excute the below programm i get the blank output nothing is display in colsole,i accept at least message like the dataProvider is not exsist,please refer below program.</p>
  <pre><code>      public class Practice {
  
  
       @Test(dataProvider=&quot;NotWorking&quot;)
       public void testCase(Object[] obj)
        {
           System.out.println(obj[0]);
           System.out.println(obj[1]);
        }
  
  @DataProvider(name=&quot;NotWorking&quot;)
  public Iterator&lt;Object[]&gt; dataProvider2()
  {
      List&lt;Object[]&gt; obj =new ArrayList&lt;Object[]&gt;();
      Object[] obj1=new Object[2];
      obj1[0]=new String(&quot;First_Object_First_value&quot;);
      obj1[1]=new String(&quot;First_Object_Second_value&quot;);
      Object[] obj2=new Object[2];
      obj2[0]=new String(&quot;Second_Object_First_value&quot;);
      obj1[1]=new String(&quot;Second_Object_Second_value&quot;);
      Iterator&lt;Object[]&gt; itr = obj.iterator();
      return itr;
         }
     }
  </code></pre>
  <p>i get the below output for above code,</p>
  <pre><code>[RemoteTestNG] detected TestNG version 7.4.0
  ===============================================
  Default test
  Tests run: 1, Failures: 0, Skips: 0
  </code></pre>