@Test
public void getKiePMMLMiningModelSourcesMap() {

    final String packageName = "packagename";
    final List<KiePMMLModel> nestedModels = new ArrayList<>();
    final Map<String, String> retrieved = KiePMMLMiningModelFactory.getKiePMMLMiningModelSourcesMap(DATA_DICTIONARY,
                                                                                                    TRANSFORMATION_DICTIONARY,
                                                                                                    MINING_MODEL,
                                                                                                    packageName,
                                                                                                   KNOWLEDGE_BUILDER,
                                                                                                   nestedModels);
    assertNotNull(retrieved);
    int expectedNestedModels = MINING_MODEL.getSegmentation().getSegments().size();
    assertEquals(expectedNestedModels, nestedModels.size());
}