KiePMMLDroolsModelWithSources extends KiePMMLDroolsModel implements HasRule { @Override public Object evaluate(final Object knowledgeBase, Map<String, Object> requestData) { throw new KiePMMLException("KiePMMLRegressionModelWithSources. is not meant to be used for actual evaluation"); } KiePMMLDroolsModelWithSources(String name, String kmodulePackageName, Map<String, String> sourcesMap, PackageDescr packageDescr); @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 String getPkgUUID(); PackageDescr getPackageDescr();  }
@Test(expected = KiePMMLException.class) public void evaluate() { kiePMMLDroolsModelWithSources.evaluate(KIE_BASE, Collections.emptyMap()); }