@Test(dataProvider = "doubleScalarData")
public void ofDoubleScalar(final DoubleRange domain) {

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