for (int i = 0; i < 10; i++) {
Vector<Double> v = new Vector<Double>();
int count = (int) (Math.random() * 1000);
for (int j = 0; j < count; j++) {
double d = Math.random();
stat.addValue(d);
v.add(d);
}
Assert.assertEquals(v, stat.getValues());
stat.clearAll();
Assert.assertEquals(new Vector(), stat.getValues());