### Question:
DefaultImportsElement extends ElementDefinition<List<DefaultImport>> { @Override public List<DefaultImport> getValue(BaseElement element) { List<ExtensionAttributeValue> extValues = element.getExtensionValues(); List<DefaultImport> defaultImports = extValues.stream() .map(ExtensionAttributeValue::getValue) .flatMap((Function<FeatureMap, Stream<?>>) extensionElements -> { List o = (List) extensionElements.get(DOCUMENT_ROOT__IMPORT, true); return o.stream(); }) .map(m -> new DefaultImport(((ImportType) m).getName())) .collect(Collectors.toList()); return defaultImports; } 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 testGetValue() { BaseElement baseElement = bpmn2.createProcess(); assertEquals(new ArrayList<>(), CustomElement.defaultImports.of(baseElement).get()); }