@Test
public void rleWithNoRepeats() throws Exception {

    Number[] values = {7.0, 2.0, 2.0, 4.0, 4.0, 6.0, 6.0, 7.0};
    List<Number> weightList = Arrays.asList(values);
    double[] actuals = Weights.buildRleWeights(weightList, 5);
    assertArrayEquals(new double[]{7.0, 2.0, 2.0, 4.0, 4.0, 6.0, 6.0, 7.0}, actuals, 0.01);
}