@Test
public void getTotalFitness() {

    double res = population.getTotalFitness();
    Assert.assertEquals(res, Double.NaN, PRECISION);
    population.calculateFitnessForAll(fitnessFunction);
    res = population.getTotalFitness();
    Assert.assertEquals(res, 9900.0, PRECISION);
}