private void requiresGeneratedCodeDeferralTest(
      JavaFileObject dependentTestFileObject, JavaFileObject generatesCodeFileObject) {
    RequiresGeneratedCodeProcessor requiresGeneratedCodeProcessor =
        new RequiresGeneratedCodeProcessor();
    Compilation compilation =
        javac()
            .withProcessors(requiresGeneratedCodeProcessor, new GeneratesCodeProcessor())
            .compile(dependentTestFileObject, generatesCodeFileObject);
    assertThat(compilation).succeeded();
    assertThat(compilation).generatedSourceFile("test.GeneratedByRequiresGeneratedCodeProcessor");
    assertThat(requiresGeneratedCodeProcessor.rejectedRounds).isEqualTo(0);
  }
Report an error for any class annotated.
common/src/test/java/com/google/auto/common/BasicAnnotationProcessorTest.java