@Test
public void degreeCutoffBasedOnSkipValue() {

    List<Map<String, Object>> data = new ArrayList<>();
    data.add(MapUtil.map("item", 1L,"weights", Arrays.asList(2.0, 3.0, 4.0)));
    data.add(MapUtil.map("item", 2L,"weights", Arrays.asList(2.0, 3.0, Double.NaN)));
    WeightedInput[] weightedInputs = WeightedInput.prepareDenseWeights(data, 2L, Double.NaN);
    assertEquals(1, weightedInputs.length);
}