JavaFileObject build() {
      ImmutableList<String> list =
          ImmutableList.<String>builder()
              .add("package foo.bar;", "", "import com.google.auto.value.AutoValue;")
              .addAll(imports)
              .add("", "@AutoValue", "public abstract class Baz {")
              .addAll(annotations)
              .add(
                  "  public abstract int buh();",
                  "",
                  "  public static Baz create(int buh) {",
                  "    return new AutoValue_Baz(buh);",
                  "  }")
              .addAll(innerTypes)
              .add("}")
              .build();
      String[] lines = list.toArray(new String[list.size()]);
      return JavaFileObjects.forSourceLines("foo.bar.Baz", lines);
    }
Tests to ensure annotations are kept on AutoValue generated classes

@author jmcampanini
value/src/test/java/com/google/auto/value/processor/PropertyAnnotationsTest.java