### Question:
ReflectionUtil { public static <A extends Annotation> A getAnnotation(final Class<?> clazz, Class<A> annoClazz) { if (clazz == null || annoClazz == null) { return null; } return clazz.getAnnotation(annoClazz); }  static A getAnnotation(final Class<?> clazz, Class<A> annoClazz); static Method[] getAllInstanceMethods(final Class<?> clazz); static Constructor<?>[] getAllConstructorsOfClass(final Class<?> clazz,
            boolean accessible); static T newInstance(final Class<T> clazz);  }### Answer:
@Test public void testGetAllAnnotationsOfClass() { TestBean t = new TestBean(); NaviRpcAuth auth = ReflectionUtil.getAnnotation(t.getClass(), NaviRpcAuth.class); Authority[] authorities = auth.value(); assertThat(authorities.length, is(2)); for (Authority authority : authorities) { System.out.println(authority.appId() + "|" + authority.token()); } }