@Test
  public void annotationsToApplyMultiple() {
    JavaFileObject file = JavaFileObjects.forResource("bad/AnnotationsToApplyMultiple.java");
    Compilation compilation = javac.compile(file);
    assertThat(compilation).failed();
    assertThat(compilation)
        .hadErrorContaining("Multiple @AnnotationsToApply annotations are not supported");
  }
We don't currently allow you to have more than one {@code @AnnotationsToApply} annotation for
any given AutoFactory class.
factory/src/test/java/com/google/auto/factory/processor/AutoFactoryProcessorNegativeTest.java