@Test
public void getDefineFunctionMethodDeclarationUnsupportedExpression() {

    for (Supplier<Expression> supplier : unsupportedExpressionSupplier) {
        DefineFunction defineFunction = defineFunctionCreator.apply(supplier);
        try {
            DefineFunctionUtils.getDefineFunctionMethodDeclaration(defineFunction);
            fail(String.format("Expecting KiePMMLException for %s", defineFunction));
        } catch (Exception e) {
            assertEquals(KiePMMLException.class, e.getClass());
        }
    }
}