@Test
public void addPMMLRuleMapperHasRule() {

    KiePMMLModelHasRule kiePmmlModel = new KiePMMLModelHasRule("TEST", Collections.emptyList());
    assertTrue(kiePmmlModel.sourcesMap.isEmpty());
    final List<String> generatedRuleMappers = new ArrayList<>();
    PMMLCompilerService.addPMMLRuleMapper(kiePmmlModel, generatedRuleMappers, "source_path");
    String expected = kiePmmlModel.getKModulePackageName() + "." + KIE_PMML_RULE_MAPPER_CLASS_NAME;
    assertTrue(kiePmmlModel.sourcesMap.containsKey(expected));
    expected =  kiePmmlModel.getKModulePackageName() + "." + KIE_PMML_RULE_MAPPER_CLASS_NAME;
    assertTrue(generatedRuleMappers.contains(expected));
}