@Test
public void getDerivedFieldMethodDeclarationUnsupportedExpression() {

    for (Supplier<Expression> supplier : unsupportedExpressionSupplier) {
        DerivedField derivedField = derivedFieldCreator.apply(supplier);
        try {
            DerivedFieldFunctionUtils.getDerivedFieldMethodDeclaration(derivedField, new AtomicInteger());
            fail(String.format("Expecting KiePMMLException for %s", derivedField));
        } catch (Exception e) {
            assertEquals(KiePMMLException.class, e.getClass());
        }
    }
}