@Test
public void getExpressionMethodDeclarationUnsupportedExpression() {

    for (Supplier<Expression> supplier : unsupportedExpressionSupplier) {
        Expression expression = supplier.get();
        try {
            DerivedFieldFunctionUtils.getExpressionMethodDeclaration(expression, DataType.STRING,
                                                                     new AtomicInteger());
            fail(String.format("Expecting KiePMMLException for %s", expression.getClass()));
        } catch (Exception e) {
            assertEquals(KiePMMLException.class, e.getClass());
        }
    }
}