HttpMethods { public static boolean isHttpMethod(final Annotation annotation) { return annotation != null && annotation.annotationType().getAnnotation(HttpMethod.class) != null; } private  HttpMethods(); static boolean isHttpMethod(final Annotation annotation);  }
@Test public void testGetAnnotation() throws Exception { assertTrue(HttpMethods.isHttpMethod(GetAnnotation.class. getMethod("getMethod").getAnnotation(GET.class))); }
@Test public void testNullAnnotation() throws Exception { assertFalse(HttpMethods.isHttpMethod(null)); }