### Question:
Population { public float getElitism() { return elitism; } Population(int size, float crossoverRatio, float elitismRatio, 
			float mutationRatio); void evolve(); Chromosome[] getPopulation(); float getElitism(); float getCrossover(); float getMutation();  }### Answer:
@Test public void testGetElitism() { Population pop = new Population(1024, 0.8f, 0.1f, 0.05f); assertEquals(10, (int) (pop.getElitism() * 100)); pop = new Population(1024, 0.8f, 0.0f, 0.05f); assertEquals(0, (int) (pop.getElitism() * 100)); pop = new Population(1024, 0.8f, 0.99f, 0.05f); assertEquals(99, (int) (pop.getElitism() * 100)); }