### Question:
Utils { static boolean isAnnotationPresent(final Class<? extends Annotation> targetAnnotation, final Class<?> annotatedType) { return findAnnotation(targetAnnotation, annotatedType) != null; } private  Utils();   }### Answer:
@Test public void isAnnotationPresentWithClassWhereAnnotationIsPresent() { assertTrue(Utils.isAnnotationPresent(Foo.class, AnnotationIsPresent.class)); }
@Test public void isAnnotationPresentWithClassWhereAnnotationIsPresentViaMetaAnnotation() { assertTrue(Utils.isAnnotationPresent(Foo.class, AnnotationIsPresentViaMetaAnnotation.class)); }
@Test public void isAnnotationPresentWithClassWhereAnnotationIsNotPresent() { assertFalse(Utils.isAnnotationPresent(Foo.class, Object.class)); }