### Question:
DRGElementTextPropertyProviderImpl implements TextPropertyProvider { @Override public String getText(final Element<? extends Definition> element) { final DRGElement drgElement = (DRGElement) DefinitionUtils.getElementDefinition(element); return drgElement.getNameHolder().getValue().getValue(); } DRGElementTextPropertyProviderImpl(); @Inject  DRGElementTextPropertyProviderImpl(final @DMNEditor DefaultCanvasCommandFactory canvasCommandFactory,
                                              final DefinitionUtils definitionUtils); @Override int getPriority(); @Override boolean supports(final Element<? extends Definition> element); @Override String getText(final Element<? extends Definition> element); @Override void setText(final AbstractCanvasHandler canvasHandler,
                        final CanvasCommandManager<AbstractCanvasHandler> commandManager,
                        final Element<? extends Definition> element,
                        final String text);  }### Answer:
@Test public void checkReadGetsTextFromNameProperty() { provider.getText(element); verify(definition).getNameHolder(); verify(nameHolder).getValue(); }