I create my annotation
public @interface MyAnnotation { }
I put it on fields in my test object
public class TestObject {
You need to mark the annotation as being available at runtime. Add the following to your annotation code.
@Retention(RetentionPolicy.RUNTIME) public @interface MyAnnotation { }