@Test
public void withScope() {

	final List<Genotype<DoubleGene>> genotypes1 =
		RandomRegistry.with(new Random(123), random ->
			Genotype.of(DoubleChromosome.of(0, 10)).instances()
				.limit(100)
				.collect(toList())
		);
	final List<Genotype<DoubleGene>> genotypes2 =
		RandomRegistry.with(new Random(123), random ->
			Genotype.of(DoubleChromosome.of(0, 10)).instances()
				.limit(100)
				.collect(toList())
		);
	assertEquals(genotypes1, genotypes2);
}