@Test
public void testSimpleDist() {

    RandomUtils.useTestSeed();
    Empirical z = new Empirical(true, true, 3, 0, 1, 0.5, 2, 1, 3.0);
    List<Double> r = Lists.newArrayList();
    for (int i = 0; i < 10001; i++) {
        r.add(z.sample());
    }
    Collections.sort(r);
    assertEquals(2.0, r.get(5000), 0.15);
}