(this post explains WHY I would want to do this: Good patterns for unit testing form beans that have annotation-based validation in Spring MVC)
Is it considered good practice to write a unit test to just test configuration/annotations on a field or a class? For example if you have:
@AnnotatedClass
public class MyClass {
@AnnotatedField1
@AnnotatedField2
private string myField;
}
Is there any point in writing a unit test that checks the presence of annotations above?