public void testParameterStyleFour() throws Exception
{
ValidationParameterExtractor extractor = new DefaultValidationParameterExtractor();
TestPerson person = new TestPerson();
Required required = person.getClass().getDeclaredField("lastName").getAnnotation(Required.class);
assertNotNull(extractor.extract(required).containsKey(PropertyValidationInterceptor.class));
assertNotNull(extractor.extract(required, PropertyValidationInterceptor.class).iterator().next());
assertEquals(1, extractor.extract(required, PropertyValidationInterceptor.class).size());
assertEquals(TestValidationInterceptor.class.getName(), extractor.extract(required, PropertyValidationInterceptor.class, PropertyValidationInterceptor.class).iterator().next().getClass().getName());