@Test
public void parallelMedian() {

	final Quantile quantile = IntStream.range(0, 1000)
		.asDoubleStream().parallel()
		.collect(
			Quantile::median,
			Quantile::accept,
			Quantile::combine);
	Assert.assertEquals(quantile.value(), floor(1000/2.0), 1.5);
}