Define an annotation that would add a version String field to a class. For example, placing it above some class like this:
@Version(value = "1.0")
public class MyClass {...}
You do not need to define annotation processing, just the exact annotation class.
Apply this annotation to TestClass.