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