@Test(dataProvider = "bitCountProbability")
public void bitCount(final Double p) {

	final int size = 1_000;
	final BitChromosome base = BitChromosome.of(size, p);
	for (int i = 0; i < 1_000; ++i) {
		final BitChromosome other = base.newInstance();
		int bitCount = 0;
		for (BitGene gene : other) {
			if (gene.booleanValue()) {
				++bitCount;
			}
		}
		Assert.assertEquals(other.bitCount(), bitCount);
	}
}