@Test(dataProvider = "longScalarData")
public void ofLongScalar(final LongRange domain) {

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