### Question:
TextAnnotationTextPropertyProviderImpl implements TextPropertyProvider { @Override public void setText(final AbstractCanvasHandler canvasHandler, final CanvasCommandManager<AbstractCanvasHandler> commandManager, final Element<? extends Definition> element, final String text) { final Object definition = DefinitionUtils.getElementDefinition(element); final CanvasCommand<AbstractCanvasHandler> command = canvasCommandFactory.updatePropertyValue(element, definitionUtils.getNameIdentifier(definition), text); commandManager.execute(canvasHandler, command); } 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 checkWriteUsesCommandToUpdateTextProperty() { provider.setText(canvasHandler, commandManager, element, NAME_VALUE); verify(canvasCommandFactory).updatePropertyValue(element, NAME_FIELD, NAME_VALUE); verify(commandManager).execute(eq(canvasHandler), eq(command)); }