FunctionND implements Function<S, T> { @SuppressWarnings("unchecked") @Override public T evaluate(final S... x) { ArgumentChecker.noNulls(x, "x"); return evaluateFunction(x); }  @SuppressWarnings("unchecked") @Override T evaluate(final S... x);  }
@Test(expectedExceptions = IllegalArgumentException.class) public void testNullParameters() { F.evaluate((Double[]) null); }
@Test(expectedExceptions = IllegalArgumentException.class) public void testNullParameter() { F.evaluate(1., null, 2.); }