public void verifyAnnotation(String methodName,String annotationName) throws Exception {
  Class clazz=Class.forName(className);
  Method method=clazz.getDeclaredMethod(methodName);
  Class annotationClazz=Class.forName(annotationName);
  java.lang.annotation.Annotation annotation=method.getAnnotation(annotationClazz);
  Assert.assertNotNull(annotation);
}

public void verifyAnnotation ( String methodName , String annotationName ) throws Exception { Class clazz = Class . forName ( className ) ; Method method = clazz . getDeclaredMethod ( methodName ) ; Class annotationClazz = Class . forName ( annotationName ) ; java . lang . annotation . Annotation annotation = method . getAnnotation ( annotationClazz ) ; Assert . assertNotNull ( annotation ) ; }
verify the method does have the annotation
