### Question:
AnnotationUtils { public static String getHttpMethodValue(Method m) { for (Annotation a : m.getAnnotations()) { HttpMethod httpM = a.annotationType().getAnnotation(HttpMethod.class); if (httpM != null) { return httpM.value(); } } return null; } private  AnnotationUtils(); static int getBindingPriority(Class<?> providerCls); static Set<String> getNameBindings(Annotation[] targetAnns); static boolean isParamAnnotationClass(Class<?> annotationClass); static boolean isValidParamAnnotationClass(Class<?> annotationClass); static boolean isValidParamAnnotations(Annotation[] paramAnnotations); static boolean isMethodAnnotation(Annotation a); static String getAnnotationValue(Annotation a); static T getAnnotation(Annotation[] anns, Class<T> type); static Method getAnnotatedMethod(Class<?> serviceClass, Method m); static String getHttpMethodValue(Method m); static A getMethodAnnotation(Method m, Class<A> aClass); static A getClassAnnotation(Class<?> c, Class<A> aClass); static String getDefaultParameterValue(Annotation[] anns);  }### Answer:
@Test public void testCustomHttpMethodValue() throws Exception { Method m = ResourceClass.class.getMethod("update", new Class[]{}); assertEquals("UPDATE", AnnotationUtils.getHttpMethodValue(m)); }