/**
* Tests if {@link ExpressionException} is thrown when function is called
* with two arguments
*/
public void testTwoArguments() {
final Function function = new CeilingFunction();
try {
function.invoke(expressionContextMock, new Value[]{
factory.createDoubleValue(10.0),
factory.createDoubleValue(20.0)});
fail("Exception wasn't thrown when ceiling was invoked with 2 arguments");
} catch (ExpressionException e) {
//do nothing, expected situation