expect(TestInteger.class == annotation.classValue());
}
public static void testComplexAnnotation() throws Exception {
ClassLoader loader = Annotations.class.getClassLoader();
TestComplex annotation = (TestComplex)
World.class.getMethod("hello").getAnnotation(TestComplex.class);
testComplexAnnotation(annotation);
Class clazz = Proxy.getProxyClass(loader, new Class[] { World.class });
annotation = (TestComplex)
clazz.getMethod("hello").getAnnotation(TestComplex.class);