RouletteWheel extends SelectionOperation implements Stochastic { public void rankPopulation(List<Individual> operands) { Collections.sort(operands); } 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 testRankPopulation() { System.out.println("rankPopulation"); RouletteWheel instance = new RouletteWheelMock(); System.out.println("before: " + individuals2.toString()); instance.rankPopulation(individuals2); System.out.println("after :" + individuals2.toString()); assertEquals(individuals, individuals2); }