final Facet facet = facetedMethod.getFacet(RegExFacet.class);
assertNotNull(facet);
assertTrue(facet instanceof RegExFacetAnnotationForType);
final RegExFacetAnnotationForType regExFacet = (RegExFacetAnnotationForType) facet;
assertEquals("^A.*", regExFacet.validation());
assertEquals(false, regExFacet.caseSensitive());
}
public void testRegExAnnotationPickedUpOnProperty() {
final RegExFacetAnnotationForPropertyFacetFactory facetFactory = new RegExFacetAnnotationForPropertyFacetFactory();