code: private static Object[][] getDataProviderContent(final Method meth,
  			final Object toInvoke) {
  
  		Object[][] res;
  		try {
  			res = (Object[][]) meth.invoke(toInvoke);
  		} catch (IllegalAccessException | IllegalArgumentException
  				| InvocationTargetException e) {
  			throw new IllegalArgumentException("Method " + meth
  					+ " as data provider throws an exception on invocation");
  		}
  
  		return res;
  	}
docs: Getting the content of a dataprovider.
  
  @param meth
  the dataprovider method
  @param toInvoke
  the object on which the method is invoked
  @return a two-dimensional array containing multiple sets of parameters
  representing single runs each.