StandaloneProcessor extends Processor<Element> { @Override protected Stream<Element> annotated(Class<? extends Annotation> annotation) { return round.getElementsAnnotatedWith(annotation).stream().map(element -> element); } StandaloneProcessor(Environment<Element> environment, Elements elements, Types types); void initialize(RoundEnvironment round);  }
@Test void annotated() { doReturn(Set.of(element)).when(round).getElementsAnnotatedWith(Plugin.class); processor.round = round; assertEquals(Set.of(element), processor.annotated(Plugin.class).collect(toSet())); }