@Test
public void getSegmentSourcesMap() {

    final Segment segment = MINING_MODEL.getSegmentation().getSegments().get(0);
    final String packageName = "packagename";
    final List<KiePMMLModel> nestedModels = new ArrayList<>();
    final Map<String, String> retrieved = KiePMMLSegmentFactory.getSegmentSourcesMap(packageName,
                                                                                     DATA_DICTIONARY,
                                                                                     TRANSFORMATION_DICTIONARY,
                                                                                     segment,
                                                                                     KNOWLEDGE_BUILDER,
                                                                                     nestedModels);
    commonEvaluateNestedModels(nestedModels);
    commonEvaluateMap(retrieved, segment);
}