@Test(dataProvider = "intScalarData")
public void ofIntScalar(final IntRange domain) {

	final Codec<Integer, IntegerGene> codec = Codecs.ofScalar(domain);
	final Genotype<IntegerGene> gt = codec.encoding().newInstance();
	assertEquals(gt.length(), 1);
	assertEquals(gt.chromosome().length(), 1);
	assertEquals(gt.gene().min().intValue(), domain.min());
	assertEquals(gt.gene().max().intValue(), domain.max());
	final Function<Genotype<IntegerGene>, Integer> f = codec.decoder();
	assertEquals(f.apply(gt).intValue(), gt.gene().intValue());
}