@Test
  public void properlyDefersProcessing_rejectsField() {
    double version = Double.parseDouble(Objects.requireNonNull(JAVA_SPECIFICATION_VERSION.value()));
    assume().that(version).isAtLeast(16.0);
    JavaFileObject classAFileObject =
        JavaFileObjects.forSourceLines(
            "test.ClassA",
            "package test;",
            "",
            "public class ClassA {",
            "@" + RequiresGeneratedCode.class.getCanonicalName() + " String s;",
            "}");
    requiresGeneratedCodeRejectionTest(classAFileObject);
  }
Report an error for any class annotated.
common/src/test/java/com/google/auto/common/BasicAnnotationProcessorTest.java