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