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