@Test(expected = IllegalArgumentException.class)
public void testIllegalArguments() {

    WeightedPredictionsAggregator aggregator = new WeightedPredictionsAggregator(new double[] {1.0, 0.5, 0.25});
    aggregator.apply(new double[] { });
}