I'm working with AOP in spring:

I have written an annotation

```
@Retention(RetentionPolicy.RUNTIME)
public @interface TestAnnotation {

}

```

And I use it on a controller method:

```
@ResponseBody
@TestAnnotation
@RequestMapping(method = RequestMethod.PUT, value = "/path/{variable}")
public return_type controller_call(@PathVariable String variable) {
    return service.methodName(variable);
}

```

In the advice I have written the following code:

```
 MethodSignature signature = (MethodSignature) joinPoint.getSignature();
    String methodName = signature.getMethod().getName();
    Class<?>[] parameterTypes = signature.getMethod().getParameterTypes();
    Annotation[] annotations = joinPoint.getTarget().getClass().getMethod(methodName, parameterTypes).getAnnotations();

```

This lists the RequestMapping and the ResponseBody annotation but it doesn't list my TestAnnotation.

Any idea why??