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