@Test
public void isValid() {

	final AnyGene<Integer> gene = AnyGene.of(
		() -> RandomRegistry.random().nextInt(1000),
		i -> i < 100
	);
	for (int i = 0; i < 5000; ++i) {
		final AnyGene<Integer> g = gene.newInstance();
		Assert.assertEquals(g.isValid(), g.allele() < 100);
		Assert.assertTrue(g.allele() < 1000);
		Assert.assertTrue(g.allele() >= 0);
	}
}