@Test
public void getKiePMMLMiningModel() {

    final KiePMMLMiningModel retrieved = KiePMMLMiningModelFactory.getKiePMMLMiningModel(DATA_DICTIONARY,
                                                                                         TRANSFORMATION_DICTIONARY,
                                                                                         MINING_MODEL,
                                                                                         KNOWLEDGE_BUILDER);
    assertNotNull(retrieved);
    assertEquals(MINING_MODEL.getAlgorithmName(), retrieved.getAlgorithmName());
    assertEquals(MINING_MODEL.isScorable(), retrieved.isScorable());
    final String expectedTargetField = "categoricalResult";
    assertEquals(expectedTargetField, retrieved.getTargetField());
}