### Question:
DMNExternalLinksToExtensionElements { static DMNElement.ExtensionElements getOrCreateExtensionElements(final DRGElement target) { return target.getExtensionElements() == null ? new TDMNElement.TExtensionElements() : target.getExtensionElements(); }    }### Answer:
@Test public void testGetOrCreateExtensionElements() { final DRGElement element = mock(DRGElement.class); final DMNElement.ExtensionElements result = getOrCreateExtensionElements(element); assertNotNull(result); final DMNElement.ExtensionElements existingElements = mock(DMNElement.ExtensionElements.class); when(element.getExtensionElements()).thenReturn(existingElements); final DMNElement.ExtensionElements actual = getOrCreateExtensionElements(element); assertEquals(actual, existingElements); }