### Question:
FormPropertiesWidget implements IsElement,
                                             FormPropertiesWidgetView.Presenter { protected static boolean isFiltered(final Element<? extends Definition<?>> element) { final Definition content = element.getContent(); if (Objects.isNull(content)) { return false; } final Object definition = content.getDefinition(); return !FormFiltersProviderFactory.getFilterForDefinition(element.getUUID(), definition).isEmpty(); } @Inject  FormPropertiesWidget(final FormPropertiesWidgetView view,
                                final DefinitionUtils definitionUtils,
                                final FormsCanvasSessionHandler formSessionHandler,
                                final Event<FormPropertiesOpened> propertiesOpenedEvent,
                                final FormsContainer formsContainer,
                                final FormsFlushManager formsFlushManager,
                                final TranslationService translationService); @PostConstruct @SuppressWarnings("unchecked") void init(); @Override HTMLElement getElement(); @Override HTMLElement getDisplayerElement(); FormsCanvasSessionHandler getFormSessionHandler(); @SuppressWarnings("unchecked") FormPropertiesWidget bind(final ClientSession session); @SuppressWarnings("unchecked") FormPropertiesWidget unbind(); @PreDestroy void destroy(); void show(); @SuppressWarnings("unchecked") void show(final Command callback); void resetLastElementRenderedCache(); boolean areLastPositionsForSameElementSame(final Element element);  }### Answer:
@Test public void testIsFiltered() { NodeImpl nodeNullContent = mock(NodeImpl.class); when(nodeNullContent.getContent()).thenReturn(null); assertFalse(FormPropertiesWidget.isFiltered(nodeNullContent)); Definition content = mock(Definition.class); NodeImpl nodeUnfiltered = mock(NodeImpl.class); Object unfilteredDefinition = mock(Object.class); when(nodeUnfiltered.getContent()).thenReturn(content); when(content.getDefinition()).thenReturn(unfilteredDefinition); assertFalse(FormPropertiesWidget.isFiltered(nodeUnfiltered)); NodeImpl nodeFiltered = mock(NodeImpl.class); when(nodeFiltered.getContent()).thenReturn(content); when(content.getDefinition()).thenReturn(CUSTOM_DEFINITION); assertTrue(FormPropertiesWidget.isFiltered(nodeFiltered)); }