Same as any other code--via debug step-through, or logging, centered on the code that processes the annotations.  It&#x27;s actually much saner than heaps of &quot;marker interfaces&quot; and is readily testable.