private void requiresGeneratedCodeDeferralTest(JavaFileObject dependentTestFileObject) {
    JavaFileObject generatesCodeFileObject =
        JavaFileObjects.forSourceLines(
            "test.ClassB",
            "package test;",
            "",
            "@" + GeneratesCode.class.getCanonicalName(),
            "public class ClassB {}");
    requiresGeneratedCodeDeferralTest(dependentTestFileObject, generatesCodeFileObject);
  }
Report an error for any class annotated.
common/src/test/java/com/google/auto/common/BasicAnnotationProcessorTest.java