void validate(final KiePMMLModel toValidate) {
        if (!(toValidate instanceof KiePMMLMiningModel)) {
            throw new KiePMMLModelException(String.format(EXPECTED_A_KIE_PMMLMINING_MODEL_RECEIVED,
                                                          toValidate.getClass().getName()));
        }
        validateMining((KiePMMLMiningModel) toValidate);
    }
@Test
    void validateNoKiePMMLMiningModel() {
        assertThatExceptionOfType(KiePMMLModelException.class).isThrownBy(() -> {
            String name = "NAME";
            KiePMMLModel kiePMMLModel = new KiePMMLTestingModel("FILENAME", name, Collections.emptyList());
            evaluator.validate(kiePMMLModel);
        });
    }