void validateMining(final KiePMMLMiningModel toValidate) {
        if (toValidate.getTargetField() == null || StringUtils.isEmpty(toValidate.getTargetField().trim())) {
            throw new KiePMMLInternalException(String.format(TARGET_FIELD_REQUIRED_RETRIEVED,
                                                             toValidate.getTargetField()));
        }
    }
@Test
    void validateMiningNoTargetField() {
        assertThatExceptionOfType(KiePMMLInternalException.class).isThrownBy(() -> {
            String name = "NAME";
            KiePMMLMiningModel kiePMMLMiningModel = KiePMMLMiningModel.builder("FILENAME", name, Collections.emptyList(),
                    MINING_FUNCTION.ASSOCIATION_RULES).build();
            evaluator.validateMining(kiePMMLMiningModel);
        });
    }