QuantumProcessor extends AbstractProcessor { @Override public Set<String> getSupportedAnnotationTypes() { Set<String> annotations = new LinkedHashSet<>(); annotations.add(Entangle.class.getCanonicalName()); return annotations; }  @Override Set<String> getSupportedAnnotationTypes(); @Override SourceVersion getSupportedSourceVersion(); @Override synchronized void init(ProcessingEnvironment processingEnv); @Override boolean process(Set<? extends TypeElement> annotations, RoundEnvironment roundEnv);  }
@Test public void shouldGetSupportedAnnotationTypes() { Set<String> annotationTypes = processor.getSupportedAnnotationTypes(); assertThat(annotationTypes, hasSize(1)); assertThat(annotationTypes, hasItem("quantum.annotations.Entangle")); }