KiePMMLMiningModelWithSources extends KiePMMLMiningModel implements HasSourcesMap { @Override public Object evaluate(final Object knowledgeBase, Map<String, Object> requestData) { throw new KiePMMLException("KiePMMLMiningModelWithSources is not meant to be used for actual evaluation"); } KiePMMLMiningModelWithSources(String modelName, String kmodulePackageName, Map<String, String> sourcesMap,List<KiePMMLModel> nestedModels); @Override Object evaluate(final Object knowledgeBase, Map<String, Object> requestData); @Override Map<String, Object> getOutputFieldsMap(); @Override Map<String, String> getSourcesMap(); @Override void addSourceMap(String key, String value); @Override String getKModulePackageName(); @Override List<KiePMMLModel> getNestedModels();  }
@Test(expected = KiePMMLException.class) public void evaluate() { kiePMMLMiningModelWithSources.evaluate("KB", Collections.EMPTY_MAP); }