@Test
public void computeStatsOnPartitionTest() {

    List<NormalDistributionStatistics> res = computer.computeStatsOnPartition(partition, meta);
    NormalDistributionStatistics[] exp = new NormalDistributionStatistics[] {
        new NormalDistributionStatistics(0, 9, 285, 45, 10),
        new NormalDistributionStatistics(Double.POSITIVE_INFINITY, Double.NEGATIVE_INFINITY, 0, 0, 10),
        new NormalDistributionStatistics(2, 11, 505, 65, 10),
        new NormalDistributionStatistics(Double.POSITIVE_INFINITY, Double.NEGATIVE_INFINITY, 0, 0, 10),
        new NormalDistributionStatistics(4, 13, 805, 85, 10),
        new NormalDistributionStatistics(Double.POSITIVE_INFINITY, Double.NEGATIVE_INFINITY, 0, 0, 10),
        new NormalDistributionStatistics(6, 15, 1185, 105, 10),
    };
    assertEquals(exp.length, res.size());
    for (int i = 0; i < exp.length; i++) {
        NormalDistributionStatistics expStat = exp[i];
        NormalDistributionStatistics resStat = res.get(i);
        assertEquals(expStat.mean(), resStat.mean(), 0.01);
        assertEquals(expStat.variance(), resStat.variance(), 0.01);
        assertEquals(expStat.std(), resStat.std(), 0.01);
        assertEquals(expStat.min(), resStat.min(), 0.01);
        assertEquals(expStat.max(), resStat.max(), 0.01);
    }
}