AspectJUtils { public <T extends Annotation> List<AnnotatedMethodParam<T>> findAnnotatedMethodParams(ProceedingJoinPoint pjp, Class<T> searchedAnnotation) { return findAnnotatedMethodParams(pjp, searchedAnnotation, false); }  AnnotatedMethodParam<T> findAnnotatedMethodParam(ProceedingJoinPoint pjp, Class<T> searchedAnnotation); List<AnnotatedMethodParam<T>> findAnnotatedMethodParams(ProceedingJoinPoint pjp, Class<T> searchedAnnotation);  }
@Test public void testFindAnnotatedMethodParams() throws NoSuchMethodException { List<AnnotatedMethodParam<ForTest>> findAnnotatedMethodParams = aspectJUtils.findAnnotatedMethodParams(getJoinPointMock(), ForTest.class); Iterator<AnnotatedMethodParam<ForTest>> iterator = findAnnotatedMethodParams.iterator(); AnnotatedMethodParam<ForTest> next = iterator.next(); assertEquals("nameForTest", next.getAnnotation().name()); assertEquals("stringForTest", next.getArg()); next = iterator.next(); assertEquals("name2ForTest", next.getAnnotation().name()); assertEquals(1L, next.getArg()); }