### Question:
DefaultTextPropertyProviderImpl implements TextPropertyProvider { @Override public void setText(final AbstractCanvasHandler canvasHandler, final CanvasCommandManager<AbstractCanvasHandler> commandManager, final Element<? extends Definition> element, final String text) { final Object def = element.getContent().getDefinition(); final String nameField = definitionUtils.getNameIdentifier(def); if (null != nameField) { final CanvasCommand<AbstractCanvasHandler> command = canvasCommandFactory.updatePropertyValue(element, nameField, text); commandManager.execute(canvasHandler, command); } } DefaultTextPropertyProviderImpl(); @Inject  DefaultTextPropertyProviderImpl(final DefinitionUtils definitionUtils,
                                           final CanvasCommandFactory<AbstractCanvasHandler> canvasCommandFactory); @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 checkWriteUsesCommandToUpdateNamePropertyMetaData() { provider.setText(canvasHandler, commandManager, element, "text"); verify(canvasCommandFactory).updatePropertyValue(eq(element), eq("name"), eq("text")); verify(commandManager).execute(eq(canvasHandler), eq(command)); }