reflector.setLoadSpecificationStringReturn(customerNoSpec);
}
public void testMaskAnnotationPickedUpOnClass() {
final MaskFacetOnTypeAnnotationFactory facetFactory = new MaskFacetOnTypeAnnotationFactory();
facetFactory.setSpecificationLookup(reflector);
@Mask("###")
class Customer {
}
facetFactory.process(new ProcessClassContext(Customer.class, methodRemover, facetedMethod));
final Facet facet = facetedMethod.getFacet(MaskFacet.class);
assertNotNull(facet);
assertTrue(facet instanceof MaskFacetOnTypeAnnotation);
final MaskFacetOnTypeAnnotation maskFacet = (MaskFacetOnTypeAnnotation) facet;