### Question:
DataTypeConstraint { DataTypeConstraintModal getConstraintModal() { return constraintModal; } @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 testGetConstraintModal() { assertNull(dataTypeConstraint.getConstraintModal()); final DataTypeConstraintModal firstCallResult = dataTypeConstraint.constraintModal(); final DataTypeConstraintModal secondCallResult = dataTypeConstraint.constraintModal(); assertNotNull(dataTypeConstraint.getConstraintModal()); assertSame(dataTypeConstraint.getConstraintModal(), firstCallResult); assertSame(dataTypeConstraint.getConstraintModal(), secondCallResult); }