@DataProvider(name="repeatDataProvider") public Iterator<Object[]> repeatDataProvider(){
  Collection<Object[]> dp=new ArrayList<>(experimentCount);
  for (int count=0; count < experimentCount; count++) {
    dp.add(new Object[]{count});
  }
  return dp.iterator();
}

@ DataProvider ( name = "repeatDataProvider" ) public Iterator < Object [ ] > repeatDataProvider ( ) { Collection < Object [ ] > dp = new ArrayList < > ( experimentCount ) ; for ( int count = 0 ; count < experimentCount ; count ++ ) { dp . add ( new Object [ ] { count } ) ; } return dp . iterator ( ) ; }
provides an iterator of indices .
