### Question:
MatchesConstraint implements FieldConstraint, Serializable { public boolean isValidForFieldType(Type fieldType) { return !(fieldType instanceof ContainerType); }  String getType(); boolean isValidForFieldType(Type fieldType); Pattern getValue(); void setValue(Pattern v); static final String MATCHES; }### Answer:
@Test public void testIsValidForFieldType() { assertTrue(constraint.isValidForFieldType(StringType.TYPE)); }