AnnotationProcessor extends AbstractProcessor { @Override public boolean process(Set<? extends TypeElement> annotations, RoundEnvironment round) { for (var element : round.getElementsAnnotatedWithAny(annotations.toArray(new TypeElement[0]))) { process(element); } clear(); return false; }  @Override void init(ProcessingEnvironment environment); @Override boolean process(Set<? extends TypeElement> annotations, RoundEnvironment round);  }
@Test void process() { RoundEnvironment round = mock(RoundEnvironment.class); doReturn(Set.of(mock(Element.class))).when(round).getElementsAnnotatedWithAny(any(TypeElement[].class)); assertFalse(processor.process(Set.of(), round)); }