### Question:
DefaultImportsElement extends ElementDefinition<List<DefaultImport>> { public static ImportType importTypeDataOf(DefaultImport defaultImport) { ImportType importType = DroolsFactory.eINSTANCE.createImportType(); importType.setName(defaultImport.getClassName()); return importType; } DefaultImportsElement(String name); @Override List<DefaultImport> getValue(BaseElement element); @Override void setValue(BaseElement element, List<DefaultImport> value); static FeatureMap.Entry extensionOf(DefaultImport defaultImport); static ImportType importTypeDataOf(DefaultImport defaultImport);  }### Answer:
@Test public void importTypeDataOf() { DefaultImportsElement defaultImportsElement = new DefaultImportsElement(NAME); DefaultImport defaultImport = new DefaultImport(CLASS_NAME); ImportType importType = defaultImportsElement.importTypeDataOf(defaultImport); assertEquals(CLASS_NAME, importType.getName()); }