@Test
public void chromosomeProbability() {

	final byte[] data = new byte[1234];
	RandomRegistry.random().nextBytes(data);
	final BitChromosome c = new BitChromosome(data);
	Assert.assertEquals(
		c.oneProbability(),
		(double) Bits.count(data)/(double)(data.length*8)
	);
}