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