QuantumProcessor extends AbstractProcessor { @Override public synchronized void init(ProcessingEnvironment processingEnv) { super.init(processingEnv); this.filer = processingEnv.getFiler(); this.elementUtils = processingEnv.getElementUtils(); }  @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 initShouldGetFilerAndElementUtils() { ProcessingEnvironment mockEnv = mock(ProcessingEnvironment.class); processor.init(mockEnv); verify(mockEnv).getFiler(); verify(mockEnv).getElementUtils(); }