### Question:
EnumConstraint implements FieldConstraint, Serializable { @Override public String getType() { return ENUM; } EnumConstraint(); @Override String getType(); @Override boolean isValidForFieldType(Type fieldType); String getName(); void setName(String name); static final String ENUM; }### Answer:
@Test public void testGetType() { assertTrue(constraint.getType().equals(EnumConstraint.ENUM)); }