SpineAnnotationProcessor extends AbstractProcessor { @Override public final Set<String> getSupportedAnnotationTypes() { Set<String> names = singleton(getAnnotationType().getName()); return names; }  @Override final synchronized void init(ProcessingEnvironment processingEnv); @Override final Set<String> getSupportedAnnotationTypes(); @Override final SourceVersion getSupportedSourceVersion(); @Override final boolean process(Set<? extends TypeElement> annotations,
                                 RoundEnvironment roundEnv);  }
@Test @DisplayName("generate supported annotation names based on target annotation") void getSupportedAnnotationTypes() { Class<?> targetType = processor.getAnnotationType(); Set<String> supportedAnnotations = processor.getSupportedAnnotationTypes(); assertNotNull(supportedAnnotations); assertEquals(targetType.getName(), supportedAnnotations.iterator().next()); }