final int iterations = 10000;
DataSet data = new DataSet(iterations);
for (int i = 0; i < iterations; i++)
{
data.addValue(generator.nextValue());
}
// Exponential distribution appears to be a bit more volatile than the others in
// terms of conforming to expectations, so use a 4% tolerance here, instead of the 2%
// used for other distributions, to avoid too many false positives.
assert Maths.approxEquals(data.getArithmeticMean(), expectedMean, 0.04d)