### Question:
DefaultImportsElement extends ElementDefinition<List<DefaultImport>> { public static FeatureMap.Entry extensionOf(DefaultImport defaultImport) { return new EStructuralFeatureImpl.SimpleFeatureMapEntry( (EStructuralFeature.Internal) DOCUMENT_ROOT__IMPORT, importTypeDataOf(defaultImport)); } 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 extensionOf() { DefaultImportsElement defaultImportsElement = new DefaultImportsElement(NAME); DefaultImport defaultImport = new DefaultImport(CLASS_NAME); ImportType importType = defaultImportsElement.importTypeDataOf(defaultImport); FeatureMap.Entry entry = defaultImportsElement.extensionOf(defaultImport); assertNotNull(entry); assertTrue(entry instanceof EStructuralFeatureImpl.SimpleFeatureMapEntry); assertEquals(DOCUMENT_ROOT__IMPORT, entry.getEStructuralFeature()); assertNotNull((ImportType) entry.getValue()); assertEquals(importType.getName(), ((ImportType) entry.getValue()).getName()); }