### Question:
RequiredConstraint implements FieldConstraint, Serializable { public String getType() { return REQUIRED; }  String getType(); boolean isValidForFieldType(Type fieldType); boolean getValue(); void setValue(boolean v); static final String REQUIRED; }### Answer:
@Test public void testGetType() { assertTrue(constraint.getType().equals(RequiredConstraint.REQUIRED)); }