@Test(expected = IllegalArgumentException.class)
public void setSimplePredicateConstructorIsMissing() {

    init(KIE_PMML_SIMPLE_PREDICATE_TEMPLATE_JAVA, KIE_PMML_SIMPLE_PREDICATE_TEMPLATE);
    AssignExpr valueAssignExpr =
            assignExprs.stream().filter(assignExpr -> assignExpr.getTarget().asNameExpr().getNameAsString().equals("value"))
                    .findFirst()
                    .orElseThrow(() -> new RuntimeException("Missing \"value\" assign variable"));
    assertTrue(valueAssignExpr.getValue() instanceof NullLiteralExpr);
    String generatedClassName = "GENERATEDCLASSNAME";
    String predicateName = "PREDICATENAME";
    OPERATOR operator = OPERATOR.IS_MISSING;
    Object value = "VALUE";
    KiePMMLPredicateFactory.setSimplePredicateConstructor(generatedClassName,
                                                          predicateName,
                                                          constructorDeclaration,
                                                          operator, value);
}