### Question:
Population { public Chromosome[] getPopulation() { Chromosome[] arr = new Chromosome[popArr.length]; System.arraycopy(popArr, 0, arr, 0, popArr.length); return arr; } Population(int size, float crossoverRatio, float elitismRatio, 
			float mutationRatio); void evolve(); Chromosome[] getPopulation(); float getElitism(); float getCrossover(); float getMutation();  }### Answer:
@Test public void testGetPopulation() { Population pop = new Population(1024, 0.8f, 0.1f, 0.05f); Chromosome[] arr = pop.getPopulation(); assertEquals(1024, arr.length); Chromosome[] newArr = new Chromosome[arr.length]; System.arraycopy(arr, 0, newArr, 0, newArr.length); Arrays.sort(newArr); assertArrayEquals(arr, newArr); }