@Test
// test only makeAccumulatedProbabilities
public void testMakeAccumulatedProbabilities() throws Exception{

    Individual[] inputIndividuals = new Individual[5];
    double[] fitness = new double[]{2.0, 4.0, 1.0, 5.0, 3.0};
    for (int i = 0; i < 5; i++){
        inputIndividuals[i] = new SimpleIndividual(1, 1.0, new SimplePhenotypeRepresentation());
        inputIndividuals[i].setFitness(fitness[i]);
    }
    double[] accumulatedProbabilities = this.operator.makeAccumulatedProbabilities(inputIndividuals);
    assertTrue(accumulatedProbabilities.length == 5);
    assertTrue(accumulatedProbabilities[0] == (2.0/15));
    assertTrue(accumulatedProbabilities[1] == (6.0/15));
    assertTrue(accumulatedProbabilities[2] == (7.0/15));
    assertTrue(accumulatedProbabilities[3] == (12.0/15));
    assertTrue(accumulatedProbabilities[4] == 1.0);
}