### Question:
ReflectionHelper { public static <A extends Annotation> boolean hasAnnotation(Method method, Class<A> annotationType) { return findAnnotation(method, annotationType) != null; }  static boolean hasAnnotation(Method method, Class<A> annotationType); @Nullable static A findAnnotation(Method method, Class<A> annotationType); @Nullable static A findAnnotation(Class<?> clazz, Class<A> annotationType); @Nullable static Object invokeMethod(Method method, Object target); static Set<Method> getterMethods(Class<?> clazz); static String propertyNameOfGetter(Method method); @Nullable static T propertyValueByName(Object targetObject, String propertyName, Class<T> clazz); @Nullable static Method propertyGetter(Object obj, String propertyName);  }### Answer:
@Test public void testHasAnnotation() { assertTrue(ReflectionHelper.hasAnnotation(childAFoo, NotNull.class)); assertTrue(ReflectionHelper.hasAnnotation(childABar, NotNull.class)); assertFalse(ReflectionHelper.hasAnnotation(childAFoo, NotBlank.class)); }