int totalNumberOfGenomes = 10;
int tooOld = currentGeneration - maxAge - 1;
oldGenomes = new ArrayList<>(totalNumberOfGenomes / 2);
newGenomes = new ArrayList<>(totalNumberOfGenomes / 2);
Genome genome1 = mock(Genome.class);
when(genome1.getFitness()).thenReturn(1000);
when(genome1.getBirthGeneration()).thenReturn(tooOld);
oldGenomes.add(genome1);
Genome genome2 = mock(Genome.class);
when(genome2.getFitness()).thenReturn(2000);
when(genome2.getBirthGeneration()).thenReturn(tooOld);
oldGenomes.add(genome2);
Genome genome3 = mock(Genome.class);
when(genome3.getFitness()).thenReturn(3000);
when(genome3.getBirthGeneration()).thenReturn(tooOld);
oldGenomes.add(genome3);
Genome genome4 = mock(Genome.class);
when(genome4.getFitness()).thenReturn(4000);
when(genome4.getBirthGeneration()).thenReturn(tooOld);
oldGenomes.add(genome4);
Genome genome5 = mock(Genome.class);
when(genome5.getFitness()).thenReturn(5000);
when(genome5.getBirthGeneration()).thenReturn(tooOld);
oldGenomes.add(genome5);
Genome genome6 = mock(Genome.class);
when(genome6.getFitness()).thenReturn(6000);
when(genome6.getBirthGeneration()).thenReturn(currentGeneration);
newGenomes.add(genome6);
Genome genome7 = mock(Genome.class);
when(genome7.getFitness()).thenReturn(7000);
when(genome7.getBirthGeneration()).thenReturn(currentGeneration);
newGenomes.add(genome7);
Genome genome8 = mock(Genome.class);
when(genome8.getFitness()).thenReturn(8000);
when(genome8.getBirthGeneration()).thenReturn(currentGeneration);
newGenomes.add(genome8);
Genome genome9 = mock(Genome.class);
when(genome9.getFitness()).thenReturn(9000);
when(genome9.getBirthGeneration()).thenReturn(currentGeneration);
newGenomes.add(genome9);
Genome genome10 = mock(Genome.class);
when(genome10.getFitness()).thenReturn(10000);
when(genome10.getBirthGeneration()).thenReturn(currentGeneration);
newGenomes.add(genome10);
List<Genome> allGenomes = new ArrayList<>(totalNumberOfGenomes);
allGenomes.addAll(oldGenomes);
allGenomes.addAll(newGenomes);