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