Book05 { public static Book05 create(String title, String author, int pubYear) { return new AutoValue_Book05(title, author, pubYear); }  static TypeAdapter<Book05> typeAdapter(Gson gson); static Book05 create(String title, String author, int pubYear);  }
@Test public void testToJson() { final Gson gson = new GsonBuilder() .registerTypeAdapterFactory(new AutoValueGsonTypeAdapterFactory()) .create(); final Book05 book = Book05.create("Foo", "Bar", 2015); final String toJson = gson.toJson(book); assertEquals(JSON, toJson); }