@Test
public void setKieRuntimeFactoryFunction() {

    KieRuntimeFactory toReturn = KieRuntimeFactory.of(KIE_BASE);
    Function<String, KieRuntimeFactory> kieRuntimeFactoryFunction = s -> toReturn;
    final DMNRuntimeImpl retrieved = (DMNRuntimeImpl) dmnRuntimeBuilder
            .setKieRuntimeFactoryFunction(kieRuntimeFactoryFunction)
            .buildConfiguration()
            .fromResources(Collections.emptyList()).getOrElseThrow(RuntimeException::new);
    assertNotNull(retrieved);
    KieRuntimeFactory kieRuntimeFactory = retrieved.getKieRuntimeFactory("TEST");
    assertEquals(toReturn, kieRuntimeFactory);
}