@Test
public void getKiePMMLModelsLoadedFromResource() {

    final KnowledgeBuilderImpl kbuilderImpl = new KnowledgeBuilderImpl();
    assertTrue(kbuilderImpl.getPackageNames().isEmpty());
    assertNull(kbuilderImpl.getPackage(PACKAGE_NAME));
    final List<PMMLRuleMapper> pmmlRuleMappers = getPMMLRuleMappers();
    final KiePMMLModelFactory kiePMMLModelFactory = getKiePMMLModelFactory();
    final List<KiePMMLModel> retrieved = PMMLLoaderService.getKiePMMLModelsLoadedFromResource(kbuilderImpl,
                                                                                              kiePMMLModelFactory,
                                                                                              pmmlRuleMappers);
    assertEquals(kiePMMLModelFactory.getKiePMMLModels(), retrieved);
    assertEquals(1, kbuilderImpl.getPackageNames().size());
    assertNotNull(kbuilderImpl.getPackage(PACKAGE_NAME));
}