DMNTypeServiceImpl extends AbstractKieContainerService implements DMNTypeService { @Override public void initializeNameAndNamespace(Settings settings, Path path, String dmnPath) { DMNModel dmnModel = getDMNModel(path, dmnPath); settings.setDmnName(dmnModel.getName()); settings.setDmnNamespace(dmnModel.getNamespace()); }  @Override FactModelTuple retrieveFactModelTuple(Path path, String dmnPath); @Override void initializeNameAndNamespace(Settings settings, Path path, String dmnPath); DMNModel getDMNModel(Path path, String dmnPath); DMNRuntime getDMNRuntime(Path path);  }
@Test public void initializeNameAndNamespace() { Settings settings = new Settings(); dmnTypeServiceImpl.initializeNameAndNamespace(settings, mock(Path.class), ""); assertEquals(NAMESPACE, settings.getDmnNamespace()); assertEquals(MODEL_NAME, settings.getDmnName()); }