@Test
public void ofSubSet() {

	final Codec<ISeq<String>, EnumGene<String>> codec = Codecs.ofSubSet(
		ISeq.of("1", "2", "3", "4", "5"), 3
	);
	for (int i = 0; i < 100; ++i) {
		final Genotype<EnumGene<String>> gt = codec.encoding().newInstance();
		final Chromosome<EnumGene<String>> ch = gt.chromosome();
		assertEquals(ch.length(), 3);
		assertTrue(ch.isValid());
		final ISeq<String> permutation = codec.decoder().apply(gt);
		assertEquals(permutation.length(), 3);
	}
}