AnnotationRepository repository = new CachingAnnotationRepository(delegate, classLoader);
Method member = beanClass.getDeclaredMethod("sayHi", String.class);
String annotation = "javax.interceptor.Interceptors";
String value = "@javax.interceptor.Interceptors (value={" + DummyInterceptor.class.getName() + ".class})";
repository.addAnnotation(member, annotation, value);
Interceptors interceptors = (Interceptors) repository.resolveAnnotation(member, Interceptors.class);
assertArrayEquals(new Class[] { DummyInterceptor.class }, interceptors.value());
}
}