Enhance testability of AnnotationAnnotateCommand