### Question:
DataTypeConstraintView implements DataTypeConstraint.View { @Override public void enable() { show(getElement()); } @Inject  DataTypeConstraintView(final HTMLAnchorElement constraintsAnchorContainer,
                                  final HTMLDivElement constraintsLabelContainer,
                                  final @Named("span") HTMLElement constraintsAnchorText,
                                  final @Named("span") HTMLElement constraintsLabelText,
                                  final @Named("span") HTMLElement constraintsTooltip,
                                  final TranslationService translationService); @Override void init(final DataTypeConstraint presenter); @PostConstruct void setup(); @EventHandler("constraints-anchor-container") void onConstraintsClick(final ClickEvent e); @Override void showAnchor(); @Override void hideAnchor(); @Override void setText(final String text); @Override void enable(); @Override void disable();  }### Answer:
@Test public void testEnable() { final HTMLElement element = mock(HTMLElement.class); element.classList = mock(DOMTokenList.class); doReturn(element).when(view).getElement(); view.enable(); element.classList.remove(HIDDEN_CSS_CLASS); }