@Test
public void getKiePMMLScorecardModel() throws Exception {

    final Map<String, KiePMMLOriginalTypeGeneratedType> fieldTypeMap = getFieldTypeMap(pmml.getDataDictionary(),
                                                                                       pmml.getTransformationDictionary(),
                                                                                       scorecardModel.getLocalTransformations());
    KiePMMLScorecardModel retrieved = KiePMMLScorecardModelFactory.getKiePMMLScorecardModel(pmml.getDataDictionary(),
                                                                                            pmml.getTransformationDictionary(),
                                                                                            scorecardModel,
                                                                                            fieldTypeMap);
    assertNotNull(retrieved);
    assertEquals(scorecardModel.getModelName(), retrieved.getName());
    assertEquals(TARGET_FIELD, retrieved.getTargetField());
}