DMNSimulationSettingsCreationStrategy implements SimulationSettingsCreationStrategy { protected FactModelTuple getFactModelTuple(Path context, String dmnFilePath) { return dmnTypeService.retrieveFactModelTuple(context, dmnFilePath); }  @Override Simulation createSimulation(Path context, String dmnFilePath); @Override Settings createSettings(Path context, String dmnFilePath);  }
@Test public void createBackground() throws Exception { FactModelTuple factModelTuple = getFactModelTuple(); final Path pathMock = mock(Path.class); final String dmnFilePath = "test"; doReturn(factModelTuple).when(dmnSimulationCreationStrategy).getFactModelTuple(any(), any()); final Background retrieved = dmnSimulationCreationStrategy.createBackground(pathMock, dmnFilePath); assertNotNull(retrieved); verify(dmnTypeServiceMock, never()).initializeNameAndNamespace( any(Settings.class), eq(pathMock), eq(dmnFilePath)); assertFalse(retrieved.getScesimModelDescriptor().getUnmodifiableFactMappings().stream() .anyMatch(elem -> OTHER.equals(elem.getExpressionIdentifier().getType()))); assertTrue(retrieved.getScesimModelDescriptor().getUnmodifiableFactMappings().stream() .allMatch(elem -> GIVEN.equals(elem.getExpressionIdentifier().getType()))); }