@Test
public void shouldTransformListToArray() throws Exception {

    Number[] values = {1.0, 2.0, 3.0, 4.0};
    List<Number> weightList = Arrays.asList(values);
    assertArrayEquals(new double[]{1.0, 2.0, 3.0, 4.0}, Weights.buildWeights(weightList), 0.01);
}