KiePMMLMiningModelWithSources extends KiePMMLMiningModel implements HasSourcesMap { @Override public Map<String, String> getSourcesMap() { return Collections.unmodifiableMap(sourcesMap); } 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 public void getSourcesMap() { assertEquals(SOURCES_MAP, kiePMMLMiningModelWithSources.getSourcesMap()); }
@Test(expected = UnsupportedOperationException.class) public void addToGetSourcesMap() { Map<String, String> retrieved = kiePMMLMiningModelWithSources.getSourcesMap(); retrieved.put("KEY", "VALUE"); }