### Question:
ImportConverter { public static org.kie.dmn.model.api.Import dmnFromWb(final Import wb) { final org.kie.dmn.model.api.Import result = new org.kie.dmn.model.v1_2.TImport(); result.setImportType(wb.getImportType()); result.setLocationURI(wb.getLocationURI().getValue()); result.setNamespace(wb.getNamespace()); final Map<javax.xml.namespace.QName, String> additionalAttributes = new HashMap<>(); for (Map.Entry<QName, String> entry : wb.getAdditionalAttributes().entrySet()) { QNamePropertyConverter.dmnFromWB(entry.getKey()) .ifPresent(qName -> additionalAttributes.put(qName, entry.getValue())); } result.setId(wb.getId().getValue()); result.setName(wb.getName().getValue()); result.setDescription(DescriptionPropertyConverter.dmnFromWB(wb.getDescription())); result.setAdditionalAttributes(additionalAttributes); wb.getNsContext().forEach((key, value) -> result.getNsContext().put(key, value)); return result; }  static Import wbFromDMN(final org.kie.dmn.model.api.Import dmn,
                                   final Definitions definitions,
                                   final PMMLDocumentMetadata pmmlDocument); static org.kie.dmn.model.api.Import dmnFromWb(final Import wb);  }### Answer:
@Test public void testDmnFromWb() { final org.kie.workbench.common.dmn.api.definition.model.Import wb = new org.kie.workbench.common.dmn.api.definition.model.Import(); final String key = "drools"; final String value = "http: wb.getNsContext().put(key, value); final org.kie.dmn.model.api.Import anImport = ImportConverter.dmnFromWb(wb); final Map<String, String> nsContext = anImport.getNsContext(); assertEquals(1, nsContext.size()); assertEquals(value, nsContext.get(key)); }