### Question:
DataTypeConstraint { public void disableEditMode() { isEditModeEnabled = false; view.hideAnchor(); } @Inject  DataTypeConstraint(final View view,
                              final ManagedInstance<DataTypeConstraintModal> constraintModalManagedInstance); void init(final DataTypeListItem listItem); String getValue(); ConstraintType getConstraintType(); HTMLElement getElement(); void enableEditMode(); void disableEditMode(); void refreshView(); void disable(); void enable();  }### Answer:
@Test public void testDisableEditMode() { dataTypeConstraint.disableEditMode(); assertFalse(dataTypeConstraint.isEditModeEnabled()); verify(view).hideAnchor(); }