### Question:
TextAnnotationTextPropertyProviderImpl implements TextPropertyProvider { @Override public boolean supports(final Element<? extends Definition> element) { return DefinitionUtils.getElementDefinition(element) instanceof TextAnnotation; } 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 @SuppressWarnings("unchecked") public void checkSupportsTextAnnotationElements() { assertTrue(provider.supports(element)); final Element other = mock(Element.class); final Definition otherContent = mock(Definition.class); final InputData otherDefinition = mock(InputData.class); when(other.getContent()).thenReturn(otherContent); when(otherContent.getDefinition()).thenReturn(otherDefinition); assertFalse(provider.supports(other)); }