DoubleSample implements Sample<Double>, Serializable { Double[] args() { final Double[] result = new Double[arity()]; for (int i = 0; i < result.length; ++i) { result[i] = _sample[i]; } return result; } DoubleSample(final double... sample); @Override int arity(); @Override Double argAt(final int index); @Override Double result(); @Override int hashCode(); @Override boolean equals(final Object obj); @Override String toString();  }
@Test(dataProvider = "argsSamples") public void args(final DoubleSample sample, final Double[] result) { final Double[] args = sample.args(); Assert.assertEquals(args.length, result.length); for (int i = 0; i < args.length; ++i) { Assert.assertEquals(args[i], result[i]); } }