102103104105106107108109110111112
// generate a new population B population = randomInts(size, rng); // call with population B mock.getFitness(population.get(rng.nextInt(size)), population); // getFitness() should be called twice assertEquals(2, mock.getNbCalls()); }