@Test
  public void annotationsToApplyNotAnnotations() {
    JavaFileObject file = JavaFileObjects.forResource("bad/AnnotationsToApplyNotAnnotations.java");
    Compilation compilation = javac.compile(file);
    assertThat(compilation).failed();
    assertThat(compilation)
        .hadErrorContaining(
            "Members of an @AnnotationsToApply annotation must themselves be annotations;"
                + " whatIsThis has type int")
        .inFile(file)
        .onLineContaining("whatIsThis");
    assertThat(compilation)
        .hadErrorContaining(
            "Members of an @AnnotationsToApply annotation must themselves be annotations;"
                + " andWhatIsThis has type com.google.errorprone.annotations.Immutable[]")
        .inFile(file)
        .onLineContaining("andWhatIsThis");
  }
We also don't allow you to have the same annotation appear more than once inside a given
{@code @AnnotationsToApply}, even with the same values.
factory/src/test/java/com/google/auto/factory/processor/AutoFactoryProcessorNegativeTest.java