### Question:
AnnotationUtils { public static <A extends Annotation> boolean isAnnotationPresent(AnnotatedElement element, Class<A> target) { return getMergedAnnotation(element, target) != null; }  static A getAnnotation(AnnotatedElement element, Class<A> target); @SuppressWarnings("unchecked") static A getMergedAnnotation(AnnotatedElement element, Class<A> target); static boolean isMetaAnnotation(Class<? extends Annotation> metaAnnotation); static boolean isAnnotationPresent(AnnotatedElement element, Class<A> target);  }### Answer:
@Test public void isAnnotationPresent() { assert AnnotationUtils.isAnnotationPresent(Bean.class, A.class); assert !AnnotationUtils.isAnnotationPresent(Bean.class, Named.class); }