@Test(expected = KiePMMLException.class)
public void addPMMLRuleMapperNoHasSourceMap() {

    final KiePMMLModel kiePmmlModel = new KiePMMLModel("name", Collections.emptyList()) {
        @Override
        public Object evaluate(Object knowledgeBase, Map<String, Object> requestData) {
            return null;
        }
    };
    PMMLCompilerService.addPMMLRuleMapper(kiePmmlModel, new ArrayList<>(), "source_path");
}