@Test
public void consistency() {

  Random gen = RandomUtils.getRandom();
  double offset = 0;
  double scale = 1;
  Normal dist = new Normal(offset, scale, RandomUtils.getRandom());
  for (int k = 0; k < 20; k++) {
    dist.setState(offset, scale);
    DistributionChecks.checkDistribution(dist, breaks, offset, scale, 10000);
    offset = gen.nextGaussian();
    scale = Math.exp(3 * gen.nextGaussian());
  }
}