RouletteWheel extends SelectionOperation implements Stochastic { public RandomNumberGenerator getRNG() { return this.rng; } RouletteWheel(int size, RandomNumberGenerator rng);  RouletteWheel(); @Override void setProperties(Properties p); @Override void doOperation(Individual operand); void doOperation(List<Individual> operands); void rankPopulation(List<Individual> operands); RandomNumberGenerator getRNG(); void setRNG(RandomNumberGenerator m);  }
@Test public void testGetRNG() { System.out.println("getRNG"); RouletteWheel instance = new RouletteWheelMock(5, new MersenneTwisterFast()); RandomNumberGenerator result = instance.getRNG(); assertEquals(true, result instanceof MersenneTwisterFast); }