public void testQuantileSanity() {
long min = 0, max = 1000;
ProbabilityDistribution dist = getDist();
dist.init(min, max, getDistParams(), "");
long last = dist.quantile(0.0);
for (double q = 0.0; q <= 1.0; q += 0.125) {
long id = dist.quantile(q);
System.err.format("quantile(%f) = %d\n", q, id);
assertTrue(id >= min);
assertTrue(id < max);