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